Accessing indirect super class variable that has been hidden in a third extended class
问题 Suppose i have a code as below : class A { int a = 1; } class B extends A { int a = 2; } class C extends B { int a = 3; void print_it() { int a = 4; // Local variable "a" to the " print_it " method System.out.println(a); //Should be 4 System.out.println(this.a); //Should be 3 System.out.println(super.a); //Should be 2 System.out.println("HOW DO I PRINT \" a \" OF THE \" CLASS A \" "); //I need to print 1 } public static void main(String[] argue) { C obj = new C(); obj.print_it(); } } How can