Nat Sci Lab CS II, IICourse: 320112Jacobs University BremenMarch 28th, 2008Dr. Heinrich Stamerjohanns.Assignment 4 - InheritanceThis assignment must be solved in C++.Your programs should include proper declarations for all the variables needed. Insert suitablecomments to explain what your program does.Also pay attention to proper indentation of your code. The TAs are supposed to take points off,if the code is not properly indented.Problem 4.1Inheritance(3 points)Build a hierarchy of classes for vehicles and implement these classes with some example proper-ties and methods.•A vehicle–color, maxspeed, move()•water vehicle, air vehicle are vehicles–Think of properties that are specific to water and air vehicles and implement these.Also implement at least one method for each inherited class.•ship, plane, helicopter–Implement at least two properties for each of these inherited classes.Each constructor, destructor and method should be implemented in such a way that each call isbeing documented on the screen.
This is the end of the preview.
access the rest of the document.