Object Oriented Modeling and Design 15CS55 Use cases lead to activities. Many of these activities correspond to operations on the class model. ATM example Consortium verifyBankCode. –  Bank  verifyPassword. – ATM verifyCashCard –  Shopping-List Operations The real-world behavior of classes suggests operations. Shopping-list operations provide an opportunity to broaden a class definition. ATM example Account.close() – Bank.createSavingsAccount(customer):account – Bank.createCheckingAccount(customer):account – Bank.createCashCardAuth(customer);cashCardAuthorization – Simplifying Operations Try to broaden the definition of an operation to encompass similar operations. Use inheritance to reduce the number of distinct operations. ATM domain model Overview of System Design Dept. of CSE, ACE Page 103
Object Oriented Modeling and Design 15CS55 Use cases lead to activities. Many of these activities correspond to operations on the class model. ATM example – Consortium  verifyBankCode. – Bank  verifyPassword. – ATM  verifyCashCard Shopping-List Operations The real-world behavior of classes suggests operations. Shopping-list operations provide an opportunity to broaden a class definition. ATM example – Account.close() – Bank.createSavingsAccount(customer):account – Bank.createCheckingAccount(customer):account – Bank.createCashCardAuth(customer);cashCardAuthorization Simplifying Operations Try to broaden the definition of an operation to encompass similar operations. Use inheritance to reduce the number of distinct operations. ATM domain model Overview of System Design Dept. of CSE, ACE Page 103
15cs55.docx