Make Unit tests for code you write.
- To demonstrate your understanding of objects and functions
- To demonstrate your understanding of controlling execution
- To demonstrate your understanding of access control
- To demonstrate your understanding of reusing classes
Complete the 'Human' class in the Superpowers Package that has fields for: name, age, gender, occupation, and address. Also create methods for retreiving and outputing this data to screen.
Then create a SuperHuman class and UNIT TEST that subclasses the first with fields for good or bad, hero name, super ability. As before, create methods for retrieving field data and printing to screen.
UML is required Unit test in place before proceeding with code Make sure you test EVERY public method
- In your unit test initialize a human and superhuman instances
- Demonstrate calling methods inherited from Human on your SuperHuman instances