posted 22 years ago
1)private memeber are not visible in subclass. so if we define any method same as super class method then it is a new method in sub class. so it is not overriding.
true.
Are private methods inherited?
no.
2)static methods are hidden in subclass. any sub class method same as super method will be a new method in sub class. so it is not overriding.
true.
Are static methods inherited?
Yes, as long as they are not hidden by a new method of the same signature in the sub class and they are not private.
[ March 08, 2002: Message edited by: Marilyn deQueiroz ]
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt