InterviewSolution
Saved Bookmarks
| 1. |
Which among the following is true?(a) A class may have virtual destructor but not virtual constructor(b) A class may have virtual constructor but not virtual destructor(c) A class may have virtual constructor and virtual constructor(d) A class may have either virtual destructor or virtual constructorI had been asked this question at a job interview.My query is from Virtual Functions topic in portion Member Functions & its Types of Object Oriented Programming |
|
Answer» Correct choice is (a) A CLASS may have virtual destructor but not virtual constructor |
|