static void Main(string[] args) { InstrumentoMusical instrumento = new InstrumentoMusical(); System.Console.WriteLine(instrumento.TocarMusica()); Violao violao = new Violao(); System.Console.WriteLine(violao.TocarMusica()); }
static void Main(string[] args) { instrumentomusical generico = new instrumentomusical(); System.Console.WriteLine(generico.TocarMusica()); Violao violao = new Violao(); System.Console.WriteLine("Violao;" + violao.TocarMusica()); }
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(); }