static void Main() { var tiger = new Tank("Tiger", 4.5, 120); var t34 = new Tank("T 34", 3.3, 75); var m1Abrams = new Tank("M1 Abrams", 5.4, 120); Console.WriteLine(tiger); }
public Tank CreateTank() { var tank = new Tank("T 34", 3.3, 75); return tank; }
public override Tank CreateTank() { var t34 = new Tank("T 34", 3.3, 75); return t34; }
public override Tank CreateTank() { var tank = new Tank("Tiger", 4.5, 120); return tank; }
public override Tank CreateTank() { var tank = new Tank("M1 Abrams", 5.4, 120); return tank; }
public override Tank CreateTank() { var m1Abrams = new Tank("M1 Abrams", 5.4, 120); return m1Abrams; }