OOPS
August 29, 2024OOPS
August 29, 2024OOPS
|
Question 99
|
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is:
|
Inheritance
|
|
|
Polymorphism
|
|
|
Over functioning
|
|
|
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
