CBSE eBooks CBSE Guess > eBooks > Class XII > Computer Science By . Mr. MRK
Chapter – 6. INHERITANCE (i) Mention the member names which accessible by Myfurniture declared in main() function. Ans: Data Members: No data member can be called from Myfurniture object. Member Functions: (ii) what is the size of Myfurniture in bytes? Ans: 29 Bytes (iii) Mention the names of functions accessible from the member function Read_office_details() of class office. Ans: Furniture::Read_fur_details( ) DELHI 2005 2.d. Answer the questions (i) to(iv) based on the following code:4 class Medicine (i) How many bytes will be required by an object of class Medicines and an object of class Antibiotics respectively? Ans: Medicine – 40 Bytes Antibiotics Object – 118 Bytes (ii) Write the names of all the member functions accessible from the object of class Antibiotics. Ans: Medicine::entermedicinedetails() (iii) Write the names of all the members accessible from member functions of class capsules. |