Beispiel #1
0
        private static void FromEmployeeLazy()
        {
            SingletonLazy fromEmployee = SingletonLazy.GetInstance;

            fromEmployee.PrintDetails("from Employee SingletonLazy");
        }
Beispiel #2
0
        private static void FromStudentLazy()
        {
            SingletonLazy fromStudent = SingletonLazy.GetInstance;

            fromStudent.PrintDetails("From Student SingletonLazy");
        }