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
WAP TO PRINT NUMBERS FROM 1-50 WHICH ARE DIVIDED BY 7 void main () { int a; clrscr (); a=1; while (a { if (a%7==0) printf ("%d\n",a); a++; } ge

write a c++ program to accept 3 numbers and find the largest of 3 numbers

Lennie McPherson, proprietor of Lennie''''s Bail Bonds, needs to calculate the amount due for setting the bail. Lennie requires something of value as collateral, and his fee is 10%

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome


main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is

Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''''{'''' and end with ''''}

padovan string for n natural numbers p(n)=1,p(n)=2,p(n)=3 and use padovan formul to get output 1

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send