Originally posted by Gopinath Rajgopal:
One more question for today.....if I have overridden a base class method, and I have a derived class object, is there any way I call invoke the base class version?
Please somebody help me out......thanx
if you have amethod() in both the base and derived class and want to exectue the amethod() in base from inside the derived class, use
super.amethod();
If you want to execute the a method in base from another class, you have to create a base object (not a base object refernce to a derived object) ie
base b = new base();
b.amethod();
[This message has been edited by Carl Trusiak (edited June 29, 2000).]