예제 #1
0
파일: Program.cs 프로젝트: dimeroll/OOP
        public static void Main()
        {
            Console.OutputEncoding = System.Text.Encoding.Default;

            Worker1 w1      = new Worker1();
            Worker2 w2      = new Worker2();
            Worker3 w3      = new Worker3();
            Manager manager = new Manager(w1, w2, w3);

            manager.Start();
            manager.Finish();

            // Wait for user
            Console.Read();
        }
예제 #2
0
파일: Program.cs 프로젝트: dimeroll/OOP
 public Manager(Worker1 w1, Worker2 w2, Worker3 w3)
 {
     worker1 = w1;
     worker2 = w2;
     worker3 = w3;
 }