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
};
- In OOP, what is function 3 referred to as? Also define this function.
- Define function 4 and write about its purpose?