1.

How To Create A Pure Virtual Function?

Answer»

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;
};

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;
};



Discussion

No Comment Found