I need to force child classes to override certain virtual functions and have a certain amount of functionality in the base class.
Since I need member variables and function bodies, I can not use an abstract class. Therefore I can not use an abstract method. Then, since the best I can do is virtual functions, those can be overridden optionally in the child classes.
What I think need is a pure virtual function. Am I right?
How do I implement this in the base class? I am having trouble using the format I expected to use and have seen on the web:
public virtual void DisplayCancelOpMessage() = 0;
I get a "; expected" error from the compiler.
Thanks for the help,