i have the following code :
class a {
    void show() {
        System.out.println("in a");
    }
}
class b extends a {
    void show() {
        System.out.println("in b");
    }
}
class c extends b {
    void show() {
        // can i do here
        ((a)super).show();
    }
}
kindly update if we can cast super variable to the superclass type.
b. why variables do not show the polymorphism phenomenon that overridden methods show.
c. i read that super.super.methodname() does not work removed to avoid violation of encapsulation.can anybody clarify on this how this is .
thanks
 
     
    