Object-oriented programming (OOPs) Question:
Download Questions PDF

What are the various types of Constructor

Answer:

Public : Accessible to All
Private: Those classes in which only static members are there and you don't want there objects to be created in any class.
Static: Used for initializing only the static members of the class. These will be invoked for the very first time the class is being loaded on the memory. They cannot accept any arguments. Static Constructors cannot have any access modifiers.
Intern: implementations of the abstract class to the assembly defining the class. A class containing an internal constructor cannot be instantiated outside of the assembly (Namespace).
and External

Download OOP Interview Questions And Answers PDF

Previous QuestionNext Question
What are Constructors?Whats the Difference between Interface and Abstract Class?