Sail E0 Webinar
Question
Which of the following statements is correct about constructors in C#.NET?
Options:
A .  A constructor cannot be declared as private
B .  A constructor cannot be overloaded
C .  A constructor can be a static constructor
D .  None of the mentioned
Answer: Option C


Static constructor is a constructor which can be called before any object of class is created or any static method is invoked.Static constructor is implicitly called by .net CLR.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers