Exemplo n.º 1
0
        private static void Tank()
        {
            Soldier joe     = new Enlisted();
            Soldier pl      = new Officer();
            Soldier chief   = new Warrant();
            Weapon  tank    = new Tank();
            Units   platoon = new Platoon();

            Console.WriteLine($"A typical armor platoon consists of: {platoon.strength} Personnel");
            Console.WriteLine("All the enlisted men say " + joe.Describe());
            Console.WriteLine("While the officer says " + pl.Describe());
            Console.WriteLine("The maintenance chief says " + chief.Describe());
            Console.WriteLine("Soldiers use the " + tank.Name);
            Console.WriteLine("With a " + tank.Load());
        }