PPT Slide
Fields can be hidden, but not overridden
public String str = "SuperStr";
System.out.println("Super.show: " + str); } }
class ExtendShow extends SuperShow {
public String str = "ExtendStr";
System.out.println("Extend.show: " + str); }
public static void main(String[] args) {
ExtendShow ext = new ExtendShow();
System.out.println(" sup.str = " + sup.str);
System.out.println(" ext.str = " + ext.str); }}
What will the output be ?