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 is stl different from c++ standard library?

738


What are stl algorithms?

619


a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

1375


write a program to convert a decimal number in to its equivalent binary number?

2077


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; }

1889






Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.

2307


What does stl stand for in basketball?

640


What are the components of stl?

619


Who created stl?

647


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1853


What is stl language?

672


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

2497


How does an stl file work?

648


What is a stl vector?

625


what is template and type convertion

1992