Esempio n. 1
0
        private static void ArtyCompany()
        {
            Soldier joe     = new Enlisted();
            Soldier pl      = new Officer();
            Weapon  weapon  = new Artillery();
            Units   company = new Company();

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