class Program
{
static void Main(string[] args)
{
SportCar SC = new SportCar("green", 2000, 250, 7, true);
Console.WriteLine("SC.color ={ 0},SC.ves ={ 1},SC.power ={ 2},SC.transmission ={ 3},SC.complete_drive{ 4}", SC.color, SC.ves, SC.power, SC.transmission, SC.complete_drive);
Console.ReadLine();
}
}
class Car
{
public string color;
public int ves;
public int power;
public Car(string color, int ves, int power)
{
this.color = color;
this.ves = ves;
this.power = power;
}
}
class SportCar : Car
{
public short transmission;
public bool complete_drive;
public SportCar(string color,int ves, int power, short transmission,bool complete_drive)
:base(color,ves,power)
{
this.transmission = transmission;
this.complete_drive = complete_drive;
}
}
Console.WriteLine("SC.color ={ 0},SC.ves ={ 1},SC.power ={ 2},SC.transmission ={ 3},SC.complete_drive{ 4}", SC.color, SC.ves, SC.power, SC.transmission, SC.complete_drive);
Console.WriteLine("SC.color ={0},SC.ves ={1},SC.power ={2},SC.transmission ={3},SC.complete_drive={4}", SC.color, SC.ves, SC.power, SC.transmission, SC.complete_drive);
Console.WriteLine($"SC.color ={SC.color},SC.ves ={SC.ves},SC.power ={SC.power},SC.transmission ={SC.transmission},SC.complete_drive={SC.complete_drive}");