1.

The static data member ______________________(a) Must be defined inside the class(b) Must be defined outside the class(c) Must be defined in main function(d) Must be defined using constructor

Answer» Right option is (b) Must be defined outside the class

Explanation: The static data members must be defined outside the class. Since these are common to all the objects and should be created only once, they must not be defined in the constructor.


Discussion

No Comment Found

Related InterviewSolutions