August 2017
Beginner
566 pages
12h 34m
English
OK, so please understand why we have designed this structure here. Vehicles is a class. We've got a lot of stuff here: two instance variables, a constructor, and a function. These features can be reused in the child classes. They don't need to be recoded.
Now go to Solution Explorer, right-click on Vehicles.cs, and select View Class Diagram. This is kind of instructive here. In the following screenshot, you can visualize the relationships among the classes in this project:

You can see Vehicles is at the top and then Sedan and Truck inherits ...
Read now
Unlock full access