public class Demo { public static void main(String[] args) { // New way to access member in NewClass SomeClass a = new NewClass(); // Use a SUPERCLASS variable System.out.println(a.x); a.method1(); // Invokes NewClass method1 a.method2(); // Invokes inherited SomeClass method2 // a.method3(); // This an inapproprate request using b ! } }