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
Implement, in rPeANUt, the a Fibonacci function by using the simple recursive approach. The Fibonacci function can be implemented in c as follow: int fib(int x) {   if (x

Write a function that calculates the number of elapsed days between two dates. For example the days between Feb 3, 1970 and June 21, 1980? Becareful for the Leap year.

Access privileges 1. If the designer of the base class needs no one, not even a derived class to access a member, then that member should be made private. 2. If the designer

With this assignment you will build a toy program that manipulates pointers to integers. You will develop the same main program fragment in both C and Assembler. Thus, you'll get t

write an algorithm that reads a postive integer n and then finds and prints the sum of all integers between 1 and n (inclusive) that are disvisible by 7. please write this using c

check this link: http://cactus.eas.asu.edu/partha/Teaching/430.2013/Project/proj-2.2013.htm

removing jewel from a necklace

the program that solve the efficiency of otto cycle

Develop a C++ program that uses a while to determine the gross pay (in Dollars) for each of several employees. The company pays “straight-time” for the first 40 hours worked by ea

Write an algorithm to print all even numbers in descending order and draw the flowchart.