πŸ“’ 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 keyword is used in Java to indicate that a class

      is inheriting from another class?
      A implements Correct Answer Incorrect Answer
      B inherits Correct Answer Incorrect Answer
      C extends Correct Answer Incorrect Answer
      D super Correct Answer Incorrect Answer
      E this Correct Answer Incorrect Answer

      Solution

      The extends keyword is used in Java to establish an inheritance relationship between classes, where one class (subclass) inherits from another (superclass).

      Practice Next
      ask-question