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

Aim: To implement a program to swap two numbers using reference arguments. Code: void swap(int *a, int *b) {             int temp;             temp=*a;

A cl a s s c a n b e d e f i n e d i n s i d e a b l o c k o r f u n c t i o n.   T h i s t yp e cla s s i s known

A: No. There is nothing you can do in C++ which you cannot do in C. In spite of everything

In this sub-task will you implement three functions for the final three function prototypes that will do exactly the same as the three functions that you have just written. This ti

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Why are all header files not declared in every C program? - Declaring all header files in each program would result in increase in overall file size and load of the program. It

What is the difference between = symbol and == symbol? - The = symbol is generally used in mathematical operations. It's used to assign a value to a given variable whereas the

Draw a flowchart for a program that allows the user to enter 20 names along with their ages and their Social Security Numbers in three parallel arrays. Programs shou