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