예제 #1
0
        private static void StudentDetails()
        {
            Singleton fromStud = Singleton.GetInstance;

            fromStud.PrintMessage("Called from Student class");

            TestLogger testLogger = new TestLogger();

            testLogger.LogInfo("Called from Professor Details method()");
        }
예제 #2
0
        private static void EmployeeDetails()
        {
            Singleton fromEmp = Singleton.GetInstance;

            fromEmp.PrintMessage("Called from Employee class");

            TestLogger testLogger = new TestLogger();

            testLogger.LogInfo("Called from Professor Details method()");
        }
예제 #3
0
        private static void ManagerDetails()
        {
            Singleton fromMgr = Singleton.GetInstance;

            fromMgr.PrintMessage("Called from Manager class");

            TestLogger testLogger = new TestLogger();

            testLogger.LogInfo("Called from Professor Details method()");
        }