Пример #1
0
        private static void PrintEmployeeEG()
        {
            SingletonEager fromEmployee = SingletonEager.GetInstance;

            fromEmployee.Print("from employee");
        }
Пример #2
0
        //test eager singleton
        private static void PrintStudentEG()
        {
            SingletonEager fromStudent = SingletonEager.GetInstance;

            fromStudent.Print("from student");
        }