In this exercise you should create a partial class Vehicle with the variable speed. You should also create four classes; Car, Boat, Train and Bicycle which inherit from Vehicle. Remember the variables for each subclass, which you can see in the picture below:
The Vehicle class and different classes inheriting from Vehicle.
Let's write an instance of Train!