On 2005-12-15, Priya Mishra <mi*******@gmail.com> wrote:
Hi all
if I have the public function in the class which has the key word
virtual i.e
public:
virtual void SetControls();
Then what does this really mean in the program.
It means that this class provides a function that may vary
polymorphically for its derived classes, in other words, derived
classes may override the function with their own implementation.
In addition, it promises to provide a default implementation that
derived classes can use if they don't want to override it.
--
Neil Cerutti