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

  • google app store apple app store
  • âś–

      Question

      Inheritance is an OOP principle that establishes an

      "is-a" relationship between classes. What does this relationship primarily allow?
      A An object to have multiple forms. Correct Answer Incorrect Answer
      B A class to hide its internal data. Correct Answer Incorrect Answer
      C A new class (subclass) to acquire properties and behaviors from an existing class (superclass). Correct Answer Incorrect Answer
      D The bundling of data and methods into a single unit. Correct Answer Incorrect Answer
      E The ability to define abstract methods. Correct Answer Incorrect Answer

      Solution

      The correct answer is C

      Practice Next
      ask-question