MCQ Single Best Answer Difficult

QOverriding can be used when we need to overide the method of superclass from_____class.

ID: #22943 TCS Core Java Questions 103 views
Question Info
#22943Q ID
DifficultDifficulty
TCS Core Java QuestionsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A sub
  • B main, dervided
  • C local
  • D global
Correct Answer: Option A

Explanation

The correct option is:

sub

Overriding occurs when a method in a subclass has the same name and parameters as a method in its superclass, allowing the subclass to provide a specific implementation of that method.

Share This Question

Challenge a friend or share with your study group.