attached below !!!
In-class project 7 (inheritance):
1. Pick a generic object where something could cause exception in its state (example: parts breaking on a vehicle),
2. Describe a generic exception that could happen in your object (example: BrokenCarPartException),
3. Describe two subclasses of the object (examples: car, truck, starship),
4. Describe two subclasses of the exception (examples: flat tire, busted hitch, reactor coolant leak)
5. Draw an inheritance diagram illustrating the relationships between the various classes and the exceptions.
6. Design a program that uses your classes and inheritance diagram showing how inheritance can work.
Assignment 7 (exceptions):
Implement your design showing:
1. classes working properly (just print their valid values and such),
2. exceptions being thrown, caught, handled, and generating a new exception from an exception handling block,
3. an exception that does not get handled that crashes your program (save this part for last please!).