Answers

Question and Answer:

  Home  C++ Virtual Functions

⟩ Give example of a pure virtual function in C++?

class SomeClass {

public:

virtual void pure_virtual() = 0; // a pure virtual function

// note that there is no function body

};

 212 views

More Questions for you: