InterviewSolution
Saved Bookmarks
| 1. |
Data members ________________ (C++)(a) Can be initialized with declaration in classes(b) Can be initialized only with help of constructors(c) Can be initialized either in declaration or by constructor(d) Can’t be initializedI had been asked this question in an internship interview.The origin of the question is Data Members topic in section Class Members & Types of Object Oriented Programming |
|
Answer» The CORRECT choice is (b) Can be initialized only with help of constructors |
|