private static void PrintEmployeeDetails() { Singleton fromEmployee = Singleton.GetInstance; fromEmployee.PrintDetails("From Employee"); }
private static void PrintEmployeeDetails() { Singleton fromEmployee = Singleton.GetSingletonEagerLazy; fromEmployee.PrintDetails("From Employee"); }
private static void PrintStudentDetails() { Singleton fromStudent = Singleton.GetInstance; fromStudent.PrintDetails("From Student"); }
private static void PrintStudentDetails() { Singleton fromStudent = Singleton.GetSingletonEagerLazy; fromStudent.PrintDetails("From Student"); }