class Car
{
public void DescribeCar()
{
ShowDetails();
}
public virtual void ShowDetails()
{
System.Console.WriteLine("Standard transportation.");
}
}
class ConvertibleCar : Car
{
public new void ShowDetails()
{
System.Console.WriteLine("A roof that opens up.");
}
}
class Minivan : Car
{
public override void ShowDetails()
{
System.Console.WriteLine("Carries seven people.");
}
}
public static void TestCars1()
{
Car car1 = new Car();
car1.DescribeCar();
ConvertibleCar car2 = new ConvertibleCar();
car2.DescribeCar();
Minivan car3 = new Minivan();
car3.DescribeCar();
}
Selecciona una de las siguientes respuestas posibles: