Computer Science , programming homework help

attached below !!!

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

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!).

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER