CBSE Computer Science - Revision Tour(Solved) CBSE Guess > eBooks > Class XII > CBSE Computer Science inheritane Solved Revision Tour By Mr. Ravi Kiran COMPUTER SCIENCE INHERITANCE DELHI 2005: 2.d) Answer the questions (i) to(iv) based on the following code: 4
(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:
(iii) Write the names of all the members
accessible from member functions of class
capsules. Ans:
(iv) Write names of all the data members which
are accessible from objects of class antibiotics.
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|