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 (iii) Write name of all data members accessible from member function of the class SoftToys. Ans:
(iv) Write name of member functions accessible an object of the class ElectronicToys ? Ans:
DELHI 2007: 2.d) Answer the questions (i) to(iv) based on the following code: 4
(i) Which type of inheritance is depicted by above example ? Ans: Multiple Inheritance. Since here the class Institute is deriving from the classes Learner and Trainer. (ii) Identify the member function(s) that cannot be called directly from the objects of class Institute from the following
Ans: All the above 3 member functions can be called directly from the objects of class Institute. (iii) Write name of all member(s) accessible from member functions of class institute. Ans:
(iv) If class institute was derived privately from class Learner and privately from class Trainer, then name the member function(s)that could be accessed through Objects of class Institute. Ans:
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|