OOPS

August 29, 2024

OOPS

August 29, 2024

OOPS

August 29, 2024

OOPS

August 29, 2024

OOPS

Question 99
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is:
A
Inheritance
B
Polymorphism
C
Over functioning
D
Overriding
Question 99 Explanation: 
In object-oriented programming, inheritance is the mechanism of basing an object or class upon another object (prototype-based inheritance) or class (class-based inheritance), retaining similar implementation.

In any object-oriented programming language,Overriding is a feature that allows a subclass or child class to provide a specific implementation of a method that is already provided by one of its superclasses or parent classes

Polymorphism is the provision of a single interface to entities of different types or the use of a single symbol to represent multiple different types

Correct Answer: B
Question 99 Explanation: 
In object-oriented programming, inheritance is the mechanism of basing an object or class upon another object (prototype-based inheritance) or class (class-based inheritance), retaining similar implementation.

In any object-oriented programming language,Overriding is a feature that allows a subclass or child class to provide a specific implementation of a method that is already provided by one of its superclasses or parent classes

Polymorphism is the provision of a single interface to entities of different types or the use of a single symbol to represent multiple different types

Leave a Reply

Your email address will not be published. Required fields are marked *