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 2002: 1.a) Illustrate the concept of Inheritance with the help of an example. 2 Ans: The capability of one class to inherit propertied from another class, is called as inheritance. The most important advantage of inheritance is code reusability. There are 5 types of inheritance:
2001: 1.a) Reusability of classes is one of the major properties of OOP. How is it implemented in C++. 2 Ans: Resuability of classes can be implemented through Inheritance. Ie After developing a class, if you want a class which consists the features of this class( ie members) and the other features also, then instead of developing a class which consists all these features, you can inherited the existing features (members) and you can develop new class consists the remaining features using DELHI 2000: 2.c) Consider the following and answer the questions given below:
(i) Name the base class and derived class of the
class Dept. Ans: Base class of Dept - School Derived class of Dept - Teacher (ii) Name the data member(s) that can be
accessed from function OUT(). Ans:
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|