Example #1
0
        private static void PrintEmployeeDetailsLazy()
        {
            SingletonLazyEager fromEmployee = SingletonLazyEager.GetInstance;

            fromEmployee.PrintDetails("From Employee");
        }
Example #2
0
        private static void PrintStudentDetailsLazy()
        {
            SingletonLazyEager fromStudent = SingletonLazyEager.GetInstance;

            fromStudent.PrintDetails("From Student");
        }