Examveda
Examveda

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. private

Answer: Option B

Solution(By Examveda Team)

Marking a method as final prevents it from being overridden by a subclass.

This Question Belongs to PHP >> Exceptions And Error Handling

Join The Discussion

Related Questions on Exceptions and Error Handling