nerdexam
National_Instruments

200-500 · Question #200

What happens if you try to access a property whose name is defined in a parent class as private, and is not declared in the current class?

The correct answer is A. An E_NOTICE error will be triggered. See the full explanation below for the reasoning.

Question

What happens if you try to access a property whose name is defined in a parent class as private, and is not declared in the current class?

Options

  • AAn E_NOTICE error will be triggered.
  • BAn E_ERROR error will be triggered.
  • CAn E_WARNING error will be triggered.
  • DNo errors will be triggered

How the community answered

(54 responses)
  • A
    70% (38)
  • B
    4% (2)
  • C
    7% (4)
  • D
    19% (10)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice