Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
