File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
"static" and "private" overridden
Joined: Dec 16, 2005
Aug 22, 2006 09:11:00
I have little bit confuse about "static" and "private" overridden.
Pls help me to understand this concept by providing document or explanation.
Joined: Aug 03, 2002
Aug 22, 2006 09:36:00
There is no such thing as "static" overriding or "private" overriding.
So just remember that you cannot override a static method nor a private method.
[ August 22, 2006: Message edited by: Barry Gaunt ]
Ask a Meaningful Question
Getting someone to think and try something out is much more useful than just telling them the answer.
Joined: Feb 02, 2006
Aug 22, 2006 11:13:00
Can a private method be overridden?
Can static methods be overridden?
I agree. Here's the link:
subject: "static" and "private" overridden
Static methods are inherited but not overriden
Static and Inheritance
A question about runtime polymorphism.
Can static method be overridden?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015