Conversion constructor, C/C++ Programming

What is conversion constructor? explain it .

Posted Date: 2/13/2013 1:04:47 AM | Location : United States





Constructor along with a single argument makes that constructor as conversion ctor and it can be utilized for type conversion.

This program will help you,

class Boo

{

public:

Boo( int i );

};

Boo BooObject = 10 ; // assigning int 10 Boo object

Posted by james | Posted Date: 2/13/2013 1:06:38 AM


Related Discussions:- Conversion constructor, Assignment Help, Ask Question on Conversion constructor, Get Answer, Expert's Help, Conversion constructor Discussions

Write discussion on Conversion constructor
Your posts are moderated
Related Questions
Define Advantages of Multi File Program? The main merits of spreading a program across several files are: • Teams of programmers able to work on programs. Every programmer w

I need to include files so you can understand easier.

write a c program to find input string using strlen(), strcpy(), strcat(),strncat(), strcmp().

how to make program c++

dynamic initialization of object using constructor in C++

#include "stdafx.h" #include iostream using namespace std; int _tmain(int argc, _TCHAR* argv[]) {             int NumbHold[5];             int * ptrNumb;

It tells the compiler that a variable or a function exists, even if the compiler hasn't yet seen it in the file presently being compiled. This variable or function may be distinct

algorithm to find out all the factors of given positive integers

What are the various types of control structures in programming? - Primarily there are 3 types of control structures in programming: Sequence, Selection and Repetition. - Se

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec