1.

Within a class, only one static constructor can be created.(a) True(b) FalseI got this question in an interview.My question is from Types of Constructors topic in chapter Constructors and Destructors of Object Oriented Programming

Answer»

The correct option is (a) True

Explanation: Since the STATIC constructors are can’t be parameterized, they can’t be OVERLOADED. Having this CASE, only one constructor will be possible to be created in a local scope, because the signature will always be same and hence it will not be possible to overload static constructor.



Discussion

No Comment Found

Related InterviewSolutions