Esempio n. 1
0
    public static void Main()
    {
        Employee jack = new Employee();

        //jack.hours = 186;
        jack.Hours = 186;
        jack.Rate  = 52;
        Console.WriteLine("Jack's ID is {0}, Income is {1:0.00} and Tax is {2:0.00}", jack.Id, jack.GetNetIncome(), GetIncomeTax(jack));

        SalesPerson jill = new SalesPerson(186, 52, 48000);

        Console.WriteLine("Jill's ID is {0}, Income is {1:0.00} and Tax is {2:0.00}", jill.Id, jill.GetNetIncome(), GetIncomeTax(jill));

        Console.WriteLine("Number of Employees = {0}", Employee.CountInstances());
    }