public static void MethodHidingMain() { PartTimeEmployee PTE = new PartTimeEmployee(); PTE.Print(); Console.ReadKey(); }
static void Main() { FullTimeEmployee FTE = new FullTimeEmployee(); FTE.FName = "FullTime"; FTE.LName = "Employee"; FTE.Print(); PartTimeEmployee PTE = new PartTimeEmployee(); PTE.FName = "PartTime"; PTE.LName = "Employee"; PTE.Print(); Console.Read(); }
public static void Main() { //Full Time Employee FullTimeEmployee fte = new FullTimeEmployee(); fte.FirstName = "Suraj"; fte.LastName = "Janmane"; fte.Email = "*****@*****.**"; fte.Workdays = 30; fte.Print(); // Part Time Employee PartTimeEmployee pte = new PartTimeEmployee("Suraj", "Janmane", "*****@*****.**", 10); pte.Print(); //Part Time Employee PartTimeEmployee pte1 = new PartTimeEmployee(); pte1.Print(); }