...
Code Block | ||
---|---|---|
| ||
package x; public class A { void doLogic() { /* print 'A' */ } public static void main(String[] args) { y.C.doSequence(); // explicitly invokes doLogicdoSequence() of class y.C and prints 'C' } } package x; public class B { /* ... */ } package y; // different package public class C extends x.B { public void doSequence() { /* print 'C' */ } // now renamed } |
...