Question
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
Posted under Object Oriented Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which feature of OOP is indicated by the following code?
Similar Questions
Discover Related MCQs
Q. Which feature may be violated if we don’t use classes in a program?
View solution
Q. How many basic features of OOP are required for a programming language to be purely OOP?
View solution
Q. The feature by which one object can interact with another object is:
View solution
Q. ___________ underlines the feature of Polymorphism in a class.
View solution
Q. Which feature in OOP is used to allocate additional function to a predefined operator in any language?
View solution
Q. Which among doesn’t illustrates polymorphism?
View solution
Q. Exception handling is feature of OOP. State True or False.
View solution
Q. Which among the following, for a pure OOP language, is true?
View solution
Q. OOP provides better security than POP:
View solution
Q. Which among the following best describes polymorphism?
View solution
Q. What do you call the languages that support classes but not polymorphism?
View solution
Q. Which among the following is the language which supports classes but not polymorphism?
View solution
Q. If same message is passed to objects of several different classes and all of those can respond in a different way, what is this feature called?
View solution
Q. Which type of function among the following shows polymorphism?
View solution
Q. In case of using abstract class or function overloading, which function is supposed to be called first?
View solution
Q. Which among the following can’t be used for polymorphism?
View solution
Q. Which among the following can show polymorphism?
View solution
Q. Polymorphism is possible in C language.
View solution
Q. Which problem may arise if we use abstract class functions for polymorphism?
View solution
Q. Which among the following is not true for polymorphism?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!