posted 16 years ago
Hi,
there are 2 programs only diffre in the static n non static.
Ans= Base.test()
another code
ans= Child.test()
My question is why the calling method class is getting change means at one place its Base class however at other its child class. What is the reason behind.
please explain me the how the call is going for a static method and nonstatic method?
Thanks
Sandhya