✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class A {
void afficher() {
System.out.println("A");
}
}
class B extends A {
void afficher() throws RuntimeException {
System.out.println("B");
}
}
public class Test {
public static void main(String[] args) {
A obj = new B();
obj.afficher();
}
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!