public class D { public static void main(String [] args) { // Can we instantiate an instance of class 'D' here? X x1 = new X(); // Assuming the answer to the previous question is 'yes' // how/can we access the attributes 'a' & 'b' // (we can access 'a' via the instance 'x1' but it's // confusing so some regard it as bad form X.a = 100; x1.b = 200; System.out.println(X.a + " " + x1.b); // Assuming the answer to the first question is 'yes' // how can we call m1() & m2() X.m1(); // Again we could call static m1 via a reference but // again some regard it as bad form // Compile error: calling non-static without reference // No: X.m2(); x1.m2(); } }