OOPs Concepts on C++ related Questions and Answers


Question :   Which one of the following is the correct way to declare a pure virtual function?
1. virtual void Display(void){0};
2. virtual void Display = 0;
3. virtual void Display(void) = 0;
4. void Display(void) = 0;
Answer :   3 - virtual void Display(void) = 0;  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter