

MCQOPTIONS
Saved Bookmarks
1. |
Which one of the following is the correct way to declare a pure virtual function? |
A. | <i class="cpp-code">virtual void Display(void){0};</i> |
B. | <i class="cpp-code">virtual void Display = 0;</i> |
C. | <i class="cpp-code">virtual void Display(void) = 0;</i> |
D. | <i class="cpp-code">void Display(void) = 0;</i> |
Answer» D. <i class="cpp-code">void Display(void) = 0;</i> | |