constructor shown in the following fragment in c plus plus?

Total Post:119

Points:835

 1234  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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.