MCQOPTIONS
Saved Bookmarks
| 1. |
Which feature of OOP is indicated by the following code? class student{ int marks; }; class topper:public student{ int age; topper(int age){ this.age=age; } }; |
| A. | Inheritance |
| B. | Polymorphism |
| C. | Inheritance and polymorphism |
| D. | Encapsulation and Inheritance |
| Answer» E. | |