Advertise with us

constructor shown in the following fragment in c plus plus?

Posted by  Goti Bandu
 1342  View(s)
Ratings:
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. 
  1. Re: constructor shown in the following fragment in c plus plus?

    Hi Goti,


    Constructor has no return type,so after correction 

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

Answer