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