Hi, I apoligize for the previous posting of my question. As I read from "Think in Java", Bruce Eckel, private methods are implicitly final, meaning that the method cannot be overriden. I ran the following code using Metrowerks CodeWarrior, and it prints "Sub".
Private methods are not inherited by subclasses, so the method in Sub is not overriding the private method in Super. Please refer to section 8.4.6 of the Java Language Specification. Section 220.127.116.11 mentions of the JLS mentions that private methods are implicitly final. One way to see this directly is to give the Super class a main method that does this: Super s = new Sub(); s.method(); and see what prints out when you run that class. John [This message has been edited by John Wetherbie (edited January 15, 2001).]
The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai