Important Java Mcq 1

multiple inheritance means?

a. one class inheriting from more superclasses

b. more classes inheriting from more superclasses

c. more classes inheriting from one superclass

d. None of the above

Answer:

a. one class inheriting from more superclasses

Explanation:

Multiple inheritances are used when a class is being derived using two base classes or more. This way a single class can have features of more than one class inherited into a single unit. This lets us combine two class members into a single class.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?