1.

You can extend the exception base class, but you cannot override any of the preceding methods because the are declared as__________(a) protected(b) final(c) static(d) privateI have been asked this question in quiz.My query is from Exception Handling topic in section Error Handling and Exception Handling in PHP of PHP

Answer»

The correct option is (B) FINAL

Easy explanation: MARKING a METHOD as final prevents it from being overridden by a SUBCLASS.



Discussion

No Comment Found

Related InterviewSolutions