1.

The static data member _________________(a) Can be mutable(b) Can’t be mutable(c) Can’t be integer(d) Can’t be charactersThe question was asked at a job interview.This intriguing question originated from Static Member Functions in section Exception Handling & Static Class Members of Object Oriented Programming

Answer»

Correct ANSWER is (b) Can’t be mutable

To explain I would SAY: The static data members can NEVER be mutable. There copies are not made. Since those are COMMON and created only once.



Discussion

No Comment Found

Related InterviewSolutions