Important Java Mcq 1

Is the method overriding a combination of inheritance and polymorphism?

a) True

b) False

Answer:

a) True

Explanation:

For method overriding, a method with the same signature in both superclass and subclass is required with the same signature. That satisfies both concepts of inheritance and polymorphism.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?