pickzy.com

C  |  C++  |  Objective-C  |  VC++  |  Win32  |  MFC  |  Java  |  Php  |  Delphi  |  Visual Basic  |  .Net  |  Networking  |  General  |  Games  |  Jobs  |  Javascript  |  




Menu

pickSourcecode.com


        

 




 

Cpp > Articles

 

What is conversion constructor?

What is conversion constructor?

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

for example:

class Boo
{
  public:
    Boo( 
int i );
};

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

 
Privacy Policy | About Us