nerdexam
Zend

200-530 · Question #526

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

The correct answer is C. 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

  • Apublic
  • Bprotected
  • Cfinal
  • Dabstract

How the community answered

(34 responses)
  • A
    12% (4)
  • B
    3% (1)
  • C
    82% (28)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice