Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Eclipse Java Code a Java program to create and use OO classes. Comment your code throughout. Create a Super class named Account Properties Account
Using Eclipse Java
Code a Java program to create and use OO classes.
- Comment your code throughout.
- Create aSuperclass namedAccount
- Properties
- Account ID
- Name
- Balance
- Constructors
- A default constructor
- Constructor with all Account parameters
- Methods
- Set and get methods for all properties
- displayAccount() - displays all properties of an Account
- Create asubclass namedSavings
- Properties
- Rate (Interest rate. Default the value to1%.This is astaticproperty)
- Constructors
- A default constructor
- Methods
- Set and get methods for all properties
- displayAccount() - to output all of the properties
- calcMonthInt() -(calculate the amount of monthly interest asbalance * ( rate/12 ))
- Then,returnthe amount of monthly interest from calcMonthInt()
- Create aMain()method to execute your logic.
- Create 15 Savings objects in an array (use a loop)
- Theaccount IDswill besav-1001throughsav-1015
- For thenames, assign the values from the user (Use a dialog input box for this)
- For thebalances, assign values from an array or from a file
- Default therateto 1% (as mentioned above)
- After you have filled the object array, output the contents of that array to the console.
- Don't be too concerned with minor syntax errors.
- Draw a line in your code (---------------------) to separate your classes
- Account
- Savings
- Main()
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