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
write a promgram using object oriented peramid

wap to cheak if a number is palindrom


enter height of the shape: 1 3 5 3 1 3 5 7 5 3 5 7 9 7 5 3 5 7 5 3 1 3 5 3 1

Project Description: I am seeking someone who can make this modem work with Linux Caller ID on Ubuntu present stable version. Skills required are C Programming, Python

Write algorithms to implement the insertion and deletion operations.

Ask question #Minimum 100Problem : Compiler Design - Limit the methods Rahul is a newbie to the programming and while learning the programming language he came to know the followi

The break statement The break statement, which was already covered in the switch.. case, can also be used in the loops. When a loop statement is encountered in the loops the co

How can I handle a constructor that fails?

Explain the Formatted Input Output with Strings? These are the third set of the scanf and printf families. They are called sscanf and sprintf. sprintf Puts formatted dat