Official Techie
In the zone
class stationary
{
char type;
char manufacturer[10];
public :
stationary();
void Read_sta_details();
void Disp_Sta_details();
};
class office : public stationary
{
int no_of_types;
float cost_of_sta;
public:
void Read_off_details();
void Disp_off_details();
};
class printer : private office
{
int no_of_users;
char delivery_date[10];
public:
void Read_pri_details();
void Disp_pri_details();
};
void main()
{
printer Myprinter;
}
what is the size of Myprinter in bytes ??
{
char type;
char manufacturer[10];
public :
stationary();
void Read_sta_details();
void Disp_Sta_details();
};
class office : public stationary
{
int no_of_types;
float cost_of_sta;
public:
void Read_off_details();
void Disp_off_details();
};
class printer : private office
{
int no_of_users;
char delivery_date[10];
public:
void Read_pri_details();
void Disp_pri_details();
};
void main()
{
printer Myprinter;
}
what is the size of Myprinter in bytes ??