public abstract class Car { protected double x = 10; protected double y = 10; private string Gas = string.empty; protected Car(){ } protected Car(double x, double y,string strGas) { this.x = x; this.y = y; this.Gas = strGas; } public abstract int Speed(); } public class TOYOTA : Car { public TOYOTA(){ } public override int Speed() { return x * y; } } public class HONDA : Car { public HONDA(double x, double y): base(x, y) { } public override int Speed() { return x * y; } } static void Main(string[] args) { TOYOTA T = new TOYOTA(); int nToyotaSpeed = T.Speed(); HONDA H = new HONDA(10,5); iny nHondaSpeed = H.Speed(); }