✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Padre { void saludar(){ System.out.println("Padre"); } }
class Hijo extends Padre {
void saludar(){ System.out.println("Hijo"); }
}
public class Main {
public static void main(String[] args){
Padre p = new Hijo();
p.saludar();
}
}