Programmierkurs Java Vorlesung 11 Dietrich Boles Seite 32 Beispiel 4 (b) public class X { public static void print() { System.out.println( in X ); } public void call() { this.print(); } public class Y extends X { public static void print() { System.out.println( in Y ); } public static void main(String[] args) { Y y = new Y(); y.call(); // Ausgabe: in X }
{"Image DocumentName": "Beispiel 4 (b) public class X { public static void print() {", "Image ImageDescription": "System.out.println( in X ); } public void call() { this.print(); public class Y extends X { System.out.println( in Y ); public static void main(String[] args) { Y y = new Y(); y.call(); // Ausgabe: in X. } }", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}