InterviewSolution
Saved Bookmarks
| 1. |
Which is the correct statement about pure virtual functions?(a) They should be defined inside a base class(b) Pure keyword should be used to declare a pure virtual function(c) Pure virtual function is implemented in derived classes(d) Pure virtual function cannot implemented in derived classes |
|
Answer» The correct option is (c) Pure virtual function is implemented in derived classes The explanation is: A pure virtual function does not have a definition corresponding to base class. All derived class may or may not have an implementation of a pure virtual function. there is no pure keyword in C++. |
|