Coder's Guild Mailing List

Frank Hale: Virtual Functions continued...

Posted by Muhammad Ali Shah on 1999-09-12

>>Okay a virtual function is a function that can be
>>declared and defined in a base class to have a
>>specific  functionality and then you can define the
>>function differently in a derived class to have a
>>separate behavior than its base class.

I had been seeking the answer and found some thing quite different from what
you have said. I defined a base class with a member
function show() and then derived a class with a member function of the same
name, ie. show(). It worked perfectly well and I had not used the keyword
virutal!

.. Some stuff cut out ...

Correct me if I am wrong. Regards from Pakistan...

Muhammad Ali Shah
BCS IV - FAST Institute of Computer Science, Karachi