What is Constructor

Answer Posted / manish

Constructor is a special type member function of class,it is
special becoz its name is same as its class name in wich it
is declared.
It has no return type even void.
Its main purpose is to initialize the object of the class in
which it is declared & this is happen as soon as the objwct
is created.

Is This Answer Correct ?    14 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you convert stl to steps?

718


What is stl in c++ with example?

731


What are the symptoms of stl?

697


What is stl stack?

745


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

1999






What is meant by stl in c++?

776


what is template and type convertion

2092


help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase

1982


What is stl stand for?

811


Is stl part of c++ standard?

723


What is a list in c++ stl?

781


When did c++ add stl?

832


In what scenario does the Logical file and Physical file being used?

2425


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1995


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

2595