InterviewSolution
Saved Bookmarks
| 1. |
How are abstract functions different from the abstract functions?(a) Abstract must not be defined in base class whereas virtual function can be defined(b) Either of those must be defined in base class(c) Different according to definition(d) Abstract functions are fasterI had been asked this question in my homework.This intriguing question originated from Abstract Function in portion Member Functions & its Types of Object Oriented Programming |
|
Answer» CORRECT OPTION is (a) Abstract MUST not be defined in base class whereas virtual function can be defined Easiest explanation - The abstract functions are only declared in base class. Derived classes have to implement those functions in order to inherit that base class. The functions are always defined in derived classes only. |
|