✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Explique por qué el siguiente código no está correcto y qué debería hacer para corregirlo.
Contenido completo del archivo Animal.java:
interface Animal { void hacerSonido();}Contenido completo del archivo Perro.java:
class Perro implements Animal { private String nombre;public Perro(String nombre) {
this.nombre = nombre;}
public String getNombre() { return nombre;}
}Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!