Question: in a UML class diagram - A basic bank account allows the account holder to make deposits to and withdrawals from the account. a. Create

in a UML class diagram

- A basic bank account allows the account holder to make deposits to and withdrawals from the account.

a. Create a class for the bank account (call the class BankAccount). Specify necessary attributes and methods for the BankAccount class, but no more than five for each. (Hint: You may define a type, such as AccountHolder, where primitive types are not appropriate.) Bank systems, such as a website or ATM, may access the BankAccount class, but they are not part of the BankAccount class.

b. Specify at least two pre-conditions for the methods of the bank account class. Include these conditions in the Astah UML class diagram, and include screenshots of these pre-conditions.

c. Provide and explain two reasons that encapsulation is important for the BankAccount class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!