Monday, 27 February 2012

What do you mean by pure virtual functions?

What do you mean by pure virtual functions?

A pure virtual member function is a member function that the base class forces derived classes to
provide. Normally these member functions have no implementation. Pure virtual functions are
equated to zero.
class Shape { public: virtual void draw() = 0; };

1 comment:

  1. Very good - thanks! Detail explanation here also:


    http://www.programmerinterview.com/index.php/c-cplusplus/pure-virtual-function/

    ReplyDelete

IE7 Issues Text Indent

                 Unfortunately IE 7 is still widespread among the users hence while theming we have to give special importance to the grea...