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
railway reservation programming

Write a C function to solve the system of linear equations A x = y where A is an N by N matrix in the format of pointer-to-pointers and y is a vector in the format of a pointer. Th

This problem familiarizes you with using random numbers in C++. The program is to compute a good approximation of π using a simulation method called "Monte Carlo". The following fi

P o i n t e r d e c l a r a t i o n f o r C l a s s : M m; M * p m; / / C la ss M i s d e c l a r e d a s


Differentiate between functions getch () and getche (). - Both functions accept a character input value from user. - When getch () is used, key that was pressed won't appear


Define a structure of student class:  Write a program to define a structure of student record in C. class student { char name[20]; int roll_no; int marks[2];

Ques.Implement a c/c++ program to find a shortest path between two nodes in a network?network should be taken as an adjacency matrix.