nerdexam
Zend

200-710 · Question #42

Which of the following tasks can be achieved by using magic methods? (Choose 3) A. Initializing or uninitializing object data B. Creating a new stream wrapper C. Creating an iterable object D…

The correct answer is A. Initializing or uninitializing object data D. Processing access to undefined methods or properties. See the full explanation below for the reasoning.

Magic Methods and Traits

Question

Which of the following tasks can be achieved by using magic methods? (Choose 3) A. Initializing or uninitializing object data B. Creating a new stream wrapper C. Creating an iterable object D. Processing access to undefined methods or properties E. Overloading operators like +, -, etc.

Options

  • AInitializing or uninitializing object data
  • BCreating a new stream wrapper
  • CCreating an iterable object
  • DProcessing access to undefined methods or properties
  • EOverloading operators like +, -, etc.

How the community answered

(37 responses)
  • A
    78% (29)
  • B
    5% (2)
  • C
    3% (1)
  • E
    14% (5)

Topics

#magic methods#__construct#__destruct#__call

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice