Question: At least one superclass or abstract superclass: this class needs to have data members, accessor, mutator, and toString methods () b. At least one subclass:
At least one superclass or abstract superclass: this class needs to have data members, accessor, mutator, and toString methods ()
b. At least one subclass: This class also needs to have data members, accessor, mutator, and toString methods ()
c. At least one interface: this interface needs to have at least two abstract methods )
d. At least one method overloading () e. At least one method overriding.
f. At least one static member and one static method ()
g. Polymorphism: you need to have at least one superclass reference to reference objects of a subclass.
h. At least one aggregation in class 2. Within your project, PLEASE include comments at the place where you use the above items. I will deduct the points if I cannot find the above items within your project.
- Write a Java program by using a Java compiler. The compiler can be JGrasp, Eclipse, NetBeans.
- Save the program with the .java extension
- Compile the program
- Test the program.
- You need to submit the Java program with .java extension, NOT .class extension
General guidance on how to do it for more of an understanding?
Step by Step Solution
There are 3 Steps involved in it
Creating a complete Java program from scratch that fulfills all the requirements mentioned in the prompt would be quite extensive However I can provide you with a general outline and guidance on how t... View full answer
Get step-by-step solutions from verified subject matter experts
