Answer: 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. <PRE>class Shape { </PRE><PRE>public: </PRE><PRE> virtual void draw() = 0; </PRE><PRE>}; </PRE> <BR clear=all>
Tags:Interview Questions, Languages, C++,
Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.
Sponsor Advertisement
Library Management System Software
Our Library Management Softare offers complete library management modules and automation solution that enables information providers, information managers, resource incharge, resource managers & librarians to manage & disseminate information & resources....
No comments:
Post a Comment