✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
¿Cuál será la salida del siguiente código?
class Animal { void hacerSonido() { System.out.println("Sonido genérico"); }}class Perro extends Animal { void hacerSonido() { System.out.println("Ladrido"); }}public class Main { public static void main(String[] args) { Animal a = new Perro(); a.hacerSonido(); }}