How is a pure virtual function declared in C++?
Correct answer B. By writing = 0 at the end of its declaration
Explanation
A pure virtual function is declared as virtual void show() = 0;. Any class containing one becomes abstract and cannot be instantiated.
Answer checked How we write and check questions
Discussion