Esempio n. 1
0
        public static void Main(string[] args)
        {
            Whistle duckWhistle    = new Whistle("Kvaak");
            Whistle roosterWhistle = new Whistle("Peef");

            duckWhistle.Sound();
            roosterWhistle.Sound();
            duckWhistle.Sound();
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            // Create Whistle.cs and follow the instructions.
            // You can test your Whistle class with these.
            Whistle duckWhistle    = new Whistle("Kvaak");
            Whistle roosterWhistle = new Whistle("Peef");

            duckWhistle.Sound();
            roosterWhistle.Sound();
            duckWhistle.Sound();
        }