cmbhatt
cmbhatt
...but the point is why inheritance is allowed for static methods if it does'nt add any new functionality or code convinience.. ?
cmbhatt
cmbhatt
cmbhatt
Originally posted by bhaskar sir:
One more point....even the explicit reference cast will call the Static method of the reference type i.e when m1 is explicitly casted to point to object of Main it stills accesses the static method vaib of it's own class ..
SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
Don't get me started about those stupid light bulbs. |