✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Parent {
int x = 2;
public void print () {
System.out.println (x);
}
}
class Child extends Parent {
int x = 3;
public static void main (String [] args) {
new Child (). print ();
}
}
(Java)