- 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
Create a 'Human' class 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 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.
No Unit Test
- In your main class initialize a few human and superhuman instances
- Demonstrate calling methods inherited from Human on your SuperHuman instances
- Print all output to screen