C++ Programming Question: Download Questions PDF
What do you mean by pure virtual functions?
![C++ Programming Interview Answer C++ Programming Interview Question](https://globalguideline.com/public/images/interview/24.png)
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.
class Shape { public: virtual void draw() = 0; };
class Shape { public: virtual void draw() = 0; };
Download C++ Programming Interview Questions And Answers
PDF
Previous Question | Next Question |
What is a scope resolution operator? | What is polymorphism in C++? Explain with an example? |