Which is the correct syntax for declaring a pure virtual function in C++?
Options
- A. virtual void show();
- B. virtual void show() = 0;
- C. void virtual show() == 0;
- D. More than one of the above
- E. None of the above
Quiz Practice:
B. virtual void show() = 0;