What is a constructor?

Answer

construtor is to initialize all member variables

Answer

construtor is to initialize all member variables

Improve Answer Discuss the question "What is a constructor?" Watch Question

First answer by ID3705787059. Last edit by ID3705787059. Question popularity: 9 [recommend question]


Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > What is a constructor?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Constructor in c?  What is destructor?  Use of constructor?  Constructor in oops?  What is a Destructor?  What is an constructor?  Constructor made in java?  Parameterized constructor in C?  What do you mean by constructor?  Why constructor are not virtual?  When will a constructor executed?  38 When will a constructor executed?  Why is more than one constructor used?  Constructor and destructor difference?  What is a constructor how it is called?  What are the rewards of being a Constructor?  What is the purpose of a constructor Destructor?  What is the purpose of a constructor and Destructor?  What qualifications do you need to be a constructor?  14 What is a constructor destructor default constructor copy constructor?