Implement the class diagrams in Java. Print out what tasks does an object in the doWork() method. For example, a student object will do “studying”. Each display() method should print all the object’s data fields and its parent’s data fields. Each getInput() method should get all the inputs from keyboard and assign them to the object’s fields and its parent’s fields. Write a main function to test your classes.
Comments
Leave a comment