Q. If class Dog has a subclass Retriever, which of the following is true? (Solved)

1. Because of single inheritance, Dog can have no other subclasses.

2. Because of single inheritance, Retriever can extend no other class except Dog.

3. The relationship between these classes implies that Dog “is-a” Retriever.

4. The relationship between these classes implies that Retriever “has-a” Dog.

  • b. Because of single inheritance, Retriever can extend no other class except Dog.
Subscribe Now

Get All Updates & News