📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      Which type of relationship does inheritance

      represent?
      A "has-a" relationship Correct Answer Incorrect Answer
      B "uses-a" relationship Correct Answer Incorrect Answer
      C "is-a" relationship Correct Answer Incorrect Answer
      D "part-of" relationship Correct Answer Incorrect Answer
      E "depends-on" relationship Correct Answer Incorrect Answer

      Solution

      Inheritance models an "is-a" relationship. For example, a Dog "is a" Animal, a Car "is a" Vehicle. This means the subclass is a specialized type of the superclass.

      Practice Next
      ask-question