Beispiel #1
0
        private static void PrintEmployeeDetailsLazySingleton()
        {
            LazySingleton employee = LazySingleton.GetInstance;

            employee.PrintDetails("This is employee message.");
        }
Beispiel #2
0
        private static void PrintStudentDetailsLazySingleton()
        {
            LazySingleton student = LazySingleton.GetInstance;

            student.PrintDetails("This is student message.");
        }