예제 #1
0
파일: Program.cs 프로젝트: obrown16/ISTA220
        static void Main(string[] args)
        {
            //build a Tank crew within a tank platoon
            Driver  Dan   = new Driver();
            Gunner  John  = new Gunner();
            TankCdr Oscar = new TankCdr();
            Loader  Matt  = new Matt();

            Console.WriteLine("Hello and welcome");
            Console.WriteLine("I'll let the crew introduce themselves");
            Console.WriteLine();

            //Call the crew to talk
            Dan.Talk();
            John.Talk();
            Oscar.Talk();
            Matt.Talk();
        }