Hi,
I created a class "myClass" and another class "mySubclass" which inherited
from "myClass". In the "mySubclass", there is a public method named
"methodOfSubclass(...)" which is not defined in "myClass".
In a client program I tried to call the "methodOfSubclass(...)", like
.......
myClass mc;
mc = new mySubclass();
mc.methodOfSubclass(...);
.......
but I got an error message when I tried to compile it:
'...myClass' does not contain a definition for 'methodOfSubclass'
What is the problem? Do I have to create a virtual method
"methodOfSubclass(...)" in "myClass" and override it in "mwSubclass"? Any
other solutions?
Thanks
Q.