Define conversion constructor?, C/C++ Programming

Define conversion constructor?

Posted Date: 3/15/2013 4:07:42 AM | Location : United States





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

For instance:

class Boo

{

public:

Boo ( int i );

};

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

Posted by | Posted Date: 3/15/2013 4:07:54 AM


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

Write discussion on Define conversion constructor?
Your posts are moderated
Related Questions
b) The static keyword let a variable to maintain its value among distinct function calls. If the value of a static variable alters while the variable has been accessed, variable

volume of a sphere


Write a program that finds the minimum total number of shelv, C/C++ Programming

A: Provided that function parameter is "const reference", compiler create temporary variable in following two ways. a) The actual argument is the correct type, however it isn't

Jewels can only be removed for polishing from either end of the necklace

write a program in c car booking system

C Program for ADD,SUB,MUL,DIV,REM void main() {   int a,b,c,ch=0;           clrscr();           while(ch           { printf(" \n\n 1:- For To Add\n 2:- For

Q: What are some ways try / catch / throw can develop software quality? A: By removing one of the reasons for if statements. The commonly utilized alternative to try / catch

Aim: To implement a program to create, update & display account & admin record of person using display account & admin records of person using virtual base class.. Code: