[I added [ code ] tags to make indentation visible - Jim] [This message has been edited by Jim Yingst (edited February 02, 2000).] [This message has been edited by Tony Alicea (edited February 02, 2000).]
which method you are overriding here? Is a nested static class can be overridden by non-static inner class?
None. The example does not demonstrate any overriding at all. Overriding means the overriding method in the subclass must have the same method signature with the overriden method in the parent class. I took a look at the methods the example declare and found the following:
As you can see, there are no instances of matching signatures and thus no overriding at all.
Alk and Vimala Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however, your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy. Thanks again and we hope to see you around the ranch!!
Francisco<br />SCJP<br />please use the [code][/code] tags when showing code.Click <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page" target="_blank">here</a> to see an example.