Professional Documents
Culture Documents
You must create also a test program, which will create an object belonging to
each class and tell it to "Drive".
Output
Solution
class Vehicle
{
protected string make;
protected string model;
protected string year;
public Vehicle()
{
}
}
}
class TestVehicles
{
static void Main()
{
Car myCar = new Car();
myCar.Drive();