What is meant by constructer

Showing Answers 1 - 7 of 7 Answers

mayank golchha

  • Nov 24th, 2005
 

constructor is a method having the same name of a class which is used to initialize the data  members of objects of that class

  Was this answer useful?  Yes

Constructor is a method with same name as the class name,its properties are: constructor is always used to intialise data members of the class.

Whenever object is created default constructor is invoked i.e

if ( available )

     executes

else

    calls super class default constructor.

  Was this answer useful?  Yes

Alina Florence

  • Jan 18th, 2006
 

Constructors are special member functions used to give initial values to the member variables and is mainly used for allocating memory to the objects of the class.

  Was this answer useful?  Yes

lalita

  • Feb 27th, 2006
 

CONSTRUCTOR is a special program usd to initialize a clas without creating its objaect.There arevarious types of constructors most useful are parameteriozed constructor.

  Was this answer useful?  Yes

Savitha

  • Apr 20th, 2006
 

A constructor is a function inside a class which has the same name as the class name. The purpose of a constructor is to initialize the data members of the class when an object instance is created . constructor doesnt have a return value.

  Was this answer useful?  Yes

CHANDRA SEKHAR

  • May 31st, 2006
 

   constructor is a special kind of method. which is used to initialize the object at run time.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions