Q.What is the size of the object FRIDGE in bytes?
class Kitchen_Products
{ char Model_No[15], C_Name[30];
int year;
protected :
auto float marks;
public:
void Get_It( );
void Show_It( );
};
class Fridge: public Kitchen_Products
{ protected:
int Capacity;
long Price;
char Color[12];
public:
void Read_It( );
void Print_It( );
};
class Stock : protected Fridge
{
int Stock_In_Hand;
public:
int Sold_Num;
void Get_Data( );
void Dis_Data( );
}FRIDGE;
Last edited on