This thread will be reviewed shortly.
If you think this thread contain inappropriate content, please report to webmaster.
Check out the following links.
You will have default constructors(initialize constructors),Parameter Constructors....
check out my article section
There are :
Default constructor :- There is no parameters.
Parameterised constructor. :- they have single or more then one paramertised constructor.
A procedure or function or method that is used for creating and initializing objects. In any language, constructor is called after the object has been created and is used mainly to initialize the object's internal state i.e. there member variables. It is a special method that initializes an object when the object is created. In the class, a constructor has the same name as the class.
we have following types of constructors
1. copy constructor
2. default constructor
3. naval constructor
4. universal constructor
5. virtual constructor
6. constructor function
7. constructor brabham
8. taller del constructor
e.g. of copy constructor
public int x;
public a(class z) \\ copy constructor
public static void Main()
a obj1 = new a();
b obj2 = new a(obj1);