Exemple #1
0
        static void Main(string[] args)
        {
            Employee toby = new Employee("Toby", "Cummings", 1000000);

            toby.Work();
            toby.Pause();

            Bosses chuckNorris = new Bosses("Norris", "Chuck", 1000000, "Ferrari");

            chuckNorris.Lead();

            Trainee maizie = new Trainee("Sweeney", "Maizie", 20000, 32, 8);

            maizie.Learn();
            maizie.Work();
            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to worker system #9000!");
            Employee Sean = new Employee("Mongru", "Sean", 25000);

            Sean.work();
            Sean.pause();

            Boss chuckNorris = new Boss("Lambo", "Chuck", "Norris", 999999);

            chuckNorris.Lead();

            Trainee emma = new Trainee(16, 40, "Emma", "Watson", 4000);

            emma.Learn();
            emma.work();


            Console.ReadLine();
            Console.Read();
        }