Exemple #1
0
        static void Main(string[] args)
        {
            InstrumentoMusical instrumento = new InstrumentoMusical();

            System.Console.WriteLine(instrumento.TocarMusica());

            Violao violao = new Violao();

            System.Console.WriteLine(violao.TocarMusica());
        }
Exemple #2
0
        static void Main(string[] args)
        {
            instrumentomusical generico = new instrumentomusical();

            System.Console.WriteLine(generico.TocarMusica());

            Violao violao = new Violao();

            System.Console.WriteLine("Violao;" + violao.TocarMusica());
        }
Exemple #3
0
        static void Main(string[] args)
        {
            InstrumentoMusical instrumentoGenerico = new InstrumentoMusical();

            System.Console.WriteLine(instrumentoGenerico.TocarMusica());

            Violao violao1 = new Violao();

            System.Console.WriteLine("VIOLÃO: " + violao1.TocarMusica());
            violao1.TocarAcordes();
        }