Multiple choice

Which of the following could be the possible reason to seal a class/method?

  1. To stop overriding

  2. To stop its implementation

  3. To stop inheritance

  4. None of these

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Explanation: We seal the class/method to stop its inheritance so that it could not be further inherited.