Answer the questions i and ii after going through the


Answer the questions (i) and (ii) after going through the following class : 

class BUS
{ private:
char Pname[30],TicktNo[20];
float Fare;
public:
BUS( ) //function 1
{ strcpy(Pname,"");
strcpy(TicktNo,"");
Fare=0; }
void Details( ) //function 2
{ cout<BUS(char * name, char *tno, float N); //function 3
BUS(BUS &F); // function 4
};

  1. In OOP, what is function 3 referred to as? Also define this function.
  2. Define function 4 and write about its purpose?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Answer the questions i and ii after going through the
Reference No:- TGS01386477

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)