1.

Template classes must have at least one static member.(a) True(b) FalseThe question was posed to me during an internship interview.My question is based upon Template Class in division Classes of Object Oriented Programming

Answer»

Right option is (b) False

To explain I would say: There is no mandatory CONDITION to have static members INSIDE TEMPLATE CLASS. Not only template, it is not mandatory to have static members ANYWHERE. We can use them as required in the code.



Discussion

No Comment Found

Related InterviewSolutions