Ejemplo n.º 1
0
        private static void PrintEmployeeEG()
        {
            SingletonEager fromEmployee = SingletonEager.GetInstance;

            fromEmployee.Print("from employee");
        }
Ejemplo n.º 2
0
        //test eager singleton
        private static void PrintStudentEG()
        {
            SingletonEager fromStudent = SingletonEager.GetInstance;

            fromStudent.Print("from student");
        }