Advertisements
Advertisements
Question
Consider the figure given below and answer the questions that follow:

- Name the base class and the derived class.
- Which concept of OOP is implemented in the figure given above?
Very Short Answer
Advertisements
Solution
- Classes in the figure
- Base class:
Mobile_phone - Derived class:
i_phone
- Base class:
- OOP concept implemented:
Inheritance.
Thei_phoneclass obtains the common characteristics of theMobile_phoneclass.
shaalaa.com
Is there an error in this question or solution?
