✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
(opérations) Soit la classe MaClasse suivante.
public class MaClasse{
private int ent;
private String ch;
public MaClasse(int i, String s){
ent=i;
ch=s;
}
public int foo(){
return ent+1;
}
public void bar(int i){
ch=ch+i;
}
public void m(int i){
ent=ent+i;
}
}
On se place dans une méthode quelconque, extérieure à MaClasse. Sélectionnez les instructions qui vont compiler parmi les suivantes :