<=Back
A C++ class defined with the following code:
class PUBLISHER
{
char Pub[12];
double Turnover;
protected:
void Register();
public:
PUBLISHER();
void Enter();
void Display();
};
class BRANCH
{
char CITY[20];
protected: float Employees;
public:BRANCH();
void Haveit();
void Giveit();
};
class AUTHOR:private BRANCH,public PUBLISHER
{
int Acode;
char Aname[20];
float Amount;
public:AUTHOR();
void Start();
void Show();
};
(i) Write four names of member functions which are accesible from objects belonging to class AUTHOR. (4 marks)
(ii) Write four names of data members which are accessible from the class AUTHOR.
 Viewed: 476 times
Share in: