What is constructor or ctor?, C/C++ Programming

What is constructor or ctor?

 

Posted Date: 3/15/2013 3:51:12 AM | Location : United States





What is constructor or ctor?

A: Constructor develops an object and initializes it. This also develops vtable for virtual functions. This is different from other methods in a class.

 

Posted by | Posted Date: 3/15/2013 3:51:49 AM


Related Discussions:- What is constructor or ctor?, Assignment Help, Ask Question on What is constructor or ctor?, Get Answer, Expert's Help, What is constructor or ctor? Discussions

Write discussion on What is constructor or ctor?
Your posts are moderated
Related Questions
Write the statements which are used to connect PHP with MySQL? Statements which can be used to connect PHP with MySQL is: $conn = mysql_connect('localhost'); echo $co

how is a beti a beti

Question: (a) Write short notes on arrays. Extend your answer by putting emphasis on memory allocation. (b) Write a C++ program to input an integer n followed by n real-

push and pop operation using array draw flowcharts

B-tree: A B-tree is an also called balanced m-way tree. A node of the tree may have many records or key and pointers to children. It is also called as the balanced sort tree. It s

A: The answer to this lies actually, how they used. Along ++i(PreIncrement) the variable is incremented and new value is returned. Thus it needs one instruction to increment the va

Explain about the Expressions in c Language? An expression is the combination of constants, variables and operators arranged as per the syntax of the language. Some of the illu

Changing Field width The printf() and scanf() functions from the standard library, use width specifier for controlling the width of its output . Similarly, the ostream class al

Implement multiple stacks in a single dimensional array using c.

What is the difference among malloc/free and new/delete? A: Malloc/free do not know about destructors and constructors. New & delete create and destroy objects, whereas malloc &