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; } };
(d).Encapsulation and Inheritance
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
(d).Encapsulation and Inheritance
need an explanation for this answer? contact us directly to get an explanation for this answer