For my java class I have to come up with a superclass and subclasses then:
Develop a class definition for the superclass. Include a constructor, setters for each instance variable, getters for each instance variable, and a method to display the contents of all instance variables. Also write a tester class that creates three instances, populates the instance variables, and displays the values of the instance variables. Allow the user to enter the values for one of the object's instance variables."
What would be a good superclass? My one friend suggested testicle with the subclasses left and right. I'm hoping for better from you guys 😀
Develop a class definition for the superclass. Include a constructor, setters for each instance variable, getters for each instance variable, and a method to display the contents of all instance variables. Also write a tester class that creates three instances, populates the instance variables, and displays the values of the instance variables. Allow the user to enter the values for one of the object's instance variables."
What would be a good superclass? My one friend suggested testicle with the subclasses left and right. I'm hoping for better from you guys 😀