Important Java Mcq 1

Object-oriented inheritance models the

a. “is a kind of” relationship

b. “has a” relationship

c. “want to be” relationship

d. “contains” of relationship

Answer:

a. “is a kind of” relationship

Explanation:

Inheritance in java is a type of “IS-A” relationship. This indicates that one object ‘is a kind of’ another object. In OOP, the IS-A relationship is completely inherited.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?