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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started