Answered step by step
Verified Expert Solution
Question
1 Approved Answer
11-1 AccountSubClasses An class has been defined to model a bank account. (see UML) An account has the properties: account number, balance, annual interest rate,
11-1 AccountSubClasses An class has been defined to model a bank account. (see UML) An account has the properties: account number, balance, annual interest rate, and date created, and methods to deposit and withdraw funds. (we will not bother with the InterestRate for this exercise) Create two subclasses for checking and saving accounts. A checking account has an overdraft limit, but a savings account cannot be overdrawn. [SDLC Alert! Do you know how these types of accounts work? how they are different? how they are similar? Make sure you understand the Problem before moving on to Design and Coding!] Draw the UML diagram for the classes and implement them. Write a test program that creates objects of , and and demonstrates that they work. invokes their methods. The .class file for Account is provided - Account.class Copy this file into the BlueJ project folder and you will be able to use NOTE: Exercise 9.7 also works with Account - You do NOT have to complete 9.7 first - use that Exercise to help understand the Account class (which will become the superclass)
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