class SuperX { public static int Uvw() { return 7; } } class SubY extends SuperX { public static int Uvw() { return 11; } } class SubZ extends SubY { public static void main(String[] args) { SuperX obj = new SubY(); // displays 7 System.out.println(obj.Uvw()); } }