nerdexam
Zend

200-530 · Question #463

Which of the following keywords is used to prevent a method/class to be overridden by a subclass?

The correct answer is D. final. See the full explanation below for the reasoning.

Question

Which of the following keywords is used to prevent a method/class to be overridden by a subclass?

Options

  • Aprotected
  • Babstract
  • Cpublic
  • Dfinal

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    16% (5)
  • C
    6% (2)
  • D
    74% (23)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice