InterviewSolution
Saved Bookmarks
| 1. |
If static data member are made inline, ______________(a) Those should be initialized outside the class(b) Those can’t be initialized with the class(c) Those can be initialized within the class(d) Those can’t be used by class members |
|
Answer» Right choice is (c) Those can be initialized within the class Explanation: Since the members are created once and are common for all the instances, those can be initialized inside the class. Those doesn’t change with each object being created hence can be defined inside the class once for all. |
|