| Author |
How do I override a method of an Inner Class?
|
Matt Wilcko
Ranch Hand
Joined: Sep 23, 2003
Posts: 65
|
|
Hi, I am trying to override a method that belong to an inner class of the BasicTreeUI class. How do I do that? Thanks
|
 |
marc weber
Sheriff
Joined: Aug 31, 2004
Posts: 11343
|
|
When a base class is extended and its nested classes are re-defined in the subclass (even with the same name as the nested class in the superclass), these nested classes do not automatically inherit from the nested class within the superclass. Instead, the re-declared inner class must specifically extend the Base.Nested class. For example... So to override a method in a nested class, I imagine you need to specifically extend that nested class...
|
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
|
 |
 |
|
|
subject: How do I override a method of an Inner Class?
|
|
|