Re: Static methods overridden !!
- From: Michael Rauscher <michlmann@xxxxxx>
- Date: Mon, 26 Mar 2007 09:53:37 +0200
Ravi wrote:
Technically speaking static methods ARE OVERRIDDEN, not at the object
level ofcourse at the class level as invocation of statics is not
object dependent. Also, we cannot take the advantage of polymorphism
in case of the static methods but thats not the point. Static methods
are overridden.
Speaking in terms of the JLS, static methods are hidden, not overriden. See [1] for details.
Bye
Michael
[1] <http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.4.8>
.
- References:
- Static methods overridden !!
- From: Ravi
- Re: Static methods overridden !!
- From: Daniel Pitts
- Re: Static methods overridden !!
- From: Ravi
- Re: Static methods overridden !!
- From: Eric Sosman
- Re: Static methods overridden !!
- From: Ravi
- Re: Static methods overridden !!
- From: Joshua Cranmer
- Re: Static methods overridden !!
- From: Lew
- Re: Static methods overridden !!
- From: Ravi
- Static methods overridden !!
- Prev by Date: Re: JPanel this reference escape in constructor.
- Next by Date: IOException....try...catch...
- Previous by thread: Re: Static methods overridden !!
- Next by thread: Re: Static methods overridden !!
- Index(es):
Relevant Pages
|