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

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

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