Exemplo n.º 1
0
        private static void PrintStudentdetails()
        {
            SingletonThreadSafe fromStudent = SingletonThreadSafe.GetInstance;

            fromStudent.PrintDetails("From Student");
        }
Exemplo n.º 2
0
        private static void PrintTeacherDetails()
        {
            SingletonThreadSafe fromTeacher = SingletonThreadSafe.GetInstance;

            fromTeacher.PrintDetails("From Teacher");
        }