Originally posted by Shilpi M Ag:
[QB]Private methods are not visible outside the class.. so u can definitely overload and override it...
[QB]
Since private methods are not visible outside their class, you can't actually "override" the method as you would be doing if that superclass method was public. You're just providing a method with an identical method signature (access level, method name, parameter list) in a subclass.
From the subclass method's perspective, it wouldn't be "overriding" anything since it can't see the private superclass method in the first place.
I thought I'd make the clarification since the the
word "override" has a special meaning in the context of object-oriented programming.
Paul