Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Cpp Programming 70 – Which one of the following is the correct way to declare a pure virtual function?

Question: Which one of the following is the correct way to declare a pure virtual function?
[A]. virtual void Display(void){0};
[B]. virtual void Display = 0;[C]. virtual void Display(void) = 0;
[D]. void Display(void) = 0;

Answer: Option C