Answers

Question and Answer:

  Home  C++ Programmer

⟩ Tell me how to create a pure virtual function?

A function is made as pure virtual function by the using a specific signature, " = 0" appended to the function declaration as given below,

class SymmetricShape {

public:

// draw() is a pure virtual function.

virtual void draw() = 0;

};

 278 views

More Questions for you: