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
Write in a file: void main() { int i,j,k,l,list[1000]; FILE *fp; char any[8];   cout cin >> any;   fp = fopen(any,"wb");     for(j=0;j     {

submitting solutions in C language should not use functions from / as these files do not exist in gcc

find the area of a curve y=f(x) between x=a and x=b integrate f(x) between limits a and b   #include float start_point, /* GLOBAL VARIABLES */

How much does it cost to complete a C++ assignment that is 80% finished??

Explain the Loop Statements in Computer Programming? 1. C gives you a choice of three kinds of loop, while, do while and for. 2. The while loop remain repeating an action until

What's the order that objects in an array are destructed? Need assistance please explain it with example.

The probabilistic Hough transform uses random sampling instead of an accumulator array. In this approach the number of random samples r, is not specified in the OpenCV call, but is


Write a program that illustrate  Macros with Arguments? Macros is able to also have arguments, just as functions can. #define AREA(x)(3.14*x*x) Then at any time the prepr

Define some features of external storage class in c program? The features of an external storage class variable are as follows: Storage - memory Default initial value -