| Author |
Static methods cannot be overriden query...
|
Nazeer Ahmed
Greenhorn
Joined: Aug 05, 2006
Posts: 21
|
|
Hi Static methods cannot be overriden but they can be redefined.Please help to clarify what is this about.The following code looks same like overriding.I am not able to understand the difference. class one{ static public void methodA(){ System.out.println("class one methodA"); } } class two extends one{ static public void methodA(){ System.out.println("class two methodA"); } }
|
 |
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
|
|
|
http://faq.javaranch.com/view?OverridingVsHiding
|
"I'm not back." - Bill Harding, Twister
|
 |
Nazeer Ahmed
Greenhorn
Joined: Aug 05, 2006
Posts: 21
|
|
|
Thanks Jim
|
 |
 |
|
|
subject: Static methods cannot be overriden query...
|
|
|