CONSTRUCTOR SHOWN IN THE FOLLOWING FRAGMENT IN C PLUS PLUS?

Goti Bandu

Total Post:119

Points:835
Posted by  Goti Bandu
 940  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. AVADHESH PATEL

    Post:604

    Points:4228
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!