Esempio n. 1
0
        static void Main(string[] args)
        {
            Employee employee = new Employee("Kirsi Kernel", "Teacher", 1800);
            Console.WriteLine("Employee" + "\n* * * * *\n" + employee.ToString() + "\n");

            Boss boss = new Boss("Matti Kekkonen", "Head of Institute", 2200, "BMW 320", 800);
            Console.WriteLine("Boss" + "\n* * * * *\n" + boss.ToString() + "\n");
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Employee employee = new Employee();

            employee.Name = "Kalle Kitti";
            employee.Profession = "Siivooja";
            employee.Salary = 1200;

            Boss boss = new Boss();

            boss.Name = "Timo Heinonen";
            boss.Profession = "Lord of the whole universe";
            boss.Salary = 9001;
            boss.Car = "Ford Kia";
            boss.Bonus = 2000;

            Console.WriteLine(employee.ToString());
            Console.WriteLine(boss.ToString());
        }