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
If you have computed a number (stored as a ?oating-point value) and want to display this on a plot (i.e. as a character string) you have to convert it into a STRING. That is we wan

#include stdio.h> #include conio.h> #include ctype.h> #include string.h>   void main() {           int i=0,j=0,length;           char a[30];           cl

to find prime numbers upto any number say "n" entered by user

Project Overview A certain financial institution (bank) wishes to promote its new business products/services by conducting road shows in rural areas. Their aim is to encourage peop


A container class is a class which is used to hold objects in external storage and memory. A container class work as a generic holder. A container class contains a predefined behav

find area uder the curve y=f(x) between x=a and x=b

how to do 2, 4, 8 associativity

Define the Data Type Modifiers in C language? There are three data types(int, float & double) above have the following modifiers. 1. short 2. long 3. signed 4. unsigned

Operation on String - C ++ Program: Write a program to define operations on string in c++. class String {    char *char_ptr;   // pointer to string contents    int le