Custom Class Project |
Write your own custom-made class modelled on our Tank class demo that includes the following items:
The custom-made class must be named appropriately and the first letter must be uppercase. For example, if your class is used to create soccer players then the name of the class would be SoccerPlayer. The file should be saved as SoccerPlayer.java in NotePad or Eclipse (where your class name is substituted for SoccerPlayer). Also, write a test class (aka client program) named SoccerPlayerTest (where your class name is substituted for SoccerPlayer). This class should be modelled on the TankTest demo. This class must instantiate (aka construct) one object from your class using the "other" constructor. Write code that makes use of every method from the class (except for the default constructor) and display output so the instructor can easily tell that the methods work properly. This file should be saved as SoccerPlayerTest.java in NotePad or Eclipse (where your class name is substituted for SoccerPlayer). Your program must follow the class Coding Standards. Save all of the files associated with this assignment in the appropriate network folder. Preconditions:
You must hand in the following on separate pages stapled in this specified order:
|