What are the various types of Constructors

 Posted by Puneet20884 on 12/23/2009 | Category: OOPS Interview questions | Views: 5333

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

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response