Home / Report Question

Q. Which of the following is the correct syntax for defining a pure virtual function in C++?
  • A. virtual void show() = 0;
  • B. void show() = 0;
  • C. virtual void show();
  • D. abstract void show();

Correct Answer: A