Zend
200-530 · Question #215
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
(49 responses)- A80% (39)
- B10% (5)
- C6% (3)
- D4% (2)
Community Discussion
No community discussion yet for this question.