At least one superclass or abstract superclass: this class needs to have data members, accessor, mutator, and
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: 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?
Cambridge International AS & A Level Computer Science
ISBN: 9781510457591
1st Edition
Authors: David Watson, Helen Williams