Answered step by step
Verified Expert Solution
Question
1 Approved Answer
design a banking system use java you must have at least one parent class and at least three child/grandchild classes (15 points) each class must
design a banking system use java
- you must have at least one parent class and at least three child/grandchild classes (15 points)
- each class must contain (either directly OR inherited from a parent):
- instance data variables (10 points)
- constructor(s) (15 points)
- getters and setters (10 points)
- overridden toString method (10 points)
- overridden equals method (15 points)
- each class must contain (either directly OR inherited from a parent):
- your classes must have a total of at least three class-specific methods (you can have just simple printlns as the method implementation for now) (10 points)
- these methods must represent functionality of objects- some action or behavior that the object takes or that is taken on the object
- the getters/setters do not count!
- these methods must be instance methods- this means they cannot be static
- write a driver program to demonstrate your classes (15 points)
- create an array or ArrayList using the parent class as the declared type
- fill with several different child objects
- invoke at least two methods on the objects (if the method exists only in the child class, use instanceof and a downcast)
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