Beispiel #1
0
 private static void SetHrData(HR hr)
 {
     hr.Id           = 101;
     hr.Name         = "Priya";
     hr.Designation  = "HR";
     hr.Experience   = 4;
     hr.AnnualSalary = 100000;
     hr.JoinDate     = "1-1-2014";
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            HR        hr        = new HR();
            Developer developer = new Developer();

            SetHrData(hr);
            hr.CountSalary();

            SetDeveloperData(developer);
            developer.CountSalary();
        }