hello..i have homework and wish that i can find help here..
i needed on sunday to be solved..
plz help as much as u can.
consider the definition of the following class:
class CC
{
public :
CC (); //line 1
CC (int); //line 2
CC(int, int); //line 3
CC(double, int); //line 4
.
.
.
private:
int u;
double v;
};
a) give the line number containing the constructor that is executed in each of the following declarations.
i. CC one;
ii. CC two(5,6);
iii. CC three(3.5, 8);
b) write the definition of the constructor in Line 1 so that the PRIVATE member variables are initialized to 0.
c) write the definition of the constructor in line 2 so that the PRIVATE member variable u is initialized according to the value of the parameter, and the private v is initialized to 0.