class Car<T1> : ICar<T1>
{
public string Brand { get; set; }
public string Model { get; set; }
public T1 Speed { get; set; }
public Car(string Brand, string Model, T1 Speed)
{
this.Brand = Brand;
this.Model = Model;
this.Speed = Speed;
}
public void Drive()
{
Console.WriteLine($"{1000 / Speed}");
}
}