loading
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;

class MainClass {
  public static void Main (string[] args) {

    IEmployee emp1 = new ContractorEmployee("Markus", "Green", 100, 6);

    IEmployee emp2 = new PermanentEmployee("Jennifer", "Ball", 60);


    ICollection<IEmployee> empList = new List<IEmployee>();

    empList.Add(emp1);
    empList.Add(emp2);


    Console.WriteLine("Employee List");
    Console.WriteLine("=============");

    foreach(IEmployee emp in empList)
    {
      Console.WriteLine (emp.getFullName() + " => Payment is " + emp.calculatePayment());
    }

  }
}