✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Supposons que l'on dispose du code suivant :
class A {
private int n;
public A(int n) {
this.n = n;
}
}
class B extends A {
public B(int n) {
// TODO...
}
}
Comment initialiser l'attribut "n" hérité de la classe A dans la classe B, à l'endroit marqué d'un "TODO" ?
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!