Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. You can extend the exception base class, but you cannot override any of the preceding methods because the are declared as__________

  2. A.

     protected

    B.

     final

    C.

     static

    D.

     private

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment