Ejemplo n.º 1
0
        public static void exampleofuse()
        {
            Singleton Teacher         = Singleton.Instance;
            Singleton Student         = Singleton.Instance;
            Singleton RockMusic       = Singleton.Instance;
            Singleton YoutubeLectures = Singleton.Instance;

            Teacher.printDetails("Hi im a Teacher");
            Student.printDetails("Hi im a Student");
            RockMusic.PlayFileInMediaPlayer("RamSthein.mp3");
            YoutubeLectures.PlayFileInMediaPlayer("SingleToneLeacture.mp3");
        }