private static void PrintEmployeeDetailsEagerSingleton() { EagerSingleton employee = EagerSingleton.GetInstance; employee.PrintDetails("This is employee message."); }
private static void PrintStudentDetailsEagerSingleton() { EagerSingleton student = EagerSingleton.GetInstance; student.PrintDetails("This is student message."); }