An inheritance model refers to which of the following relationships ?(a) 'is-a' relationship (b) 'bas-a' relationship(c) 'a-part-of relationship (d) All of these
Answers
Answered by
2
"Option: (a), “is-a” relationship
An inheritance refers to is-a relationship. The inheritance is of two types “Class inheritance or Interface inheritance” .An “is a” relationship is basically equivalent to “X is a type of Y”. For example, we can say- “Eucalyptus is a tree” or “Mango is a fruit”, or “Maruti Swift is a car”. All these examples show the “is-a” relationships. In OOP, Inheritance implements the “is-a” relationships.
"
Similar questions