Home > DeveloperSection > Forums > constructor shown in the following fragment in c plus plus?
Goti Bandu

Total Post:119

Points:835
Posted on    June-14-2013 9:35 AM

 Visual C++ Visual C++ 
Ratings:


 1 Reply(s)
 712  View(s)
Rate this:
Hi Expert,

What wrong with constructor shown in the following fragment in C++?

class sample {
double a,b,c;
public:
double sample( );

Thanks in advance. 


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-15-2013 4:53 AM

Hi Goti,

Constructor has no return type,so after correction 

class sample
{
double a,b,c;
public:
sample( );
}

Don't want to miss updates? Please click the below button!

Follow MindStick