nerdexam
Zend

200-550 · Question #81

Which of the following is NOT true about PHP traits? (Choose 2)

The correct answer is B. A trait can implement an interface. E. Traits automatically resolve conflicts based on definition order. See the full explanation below for the reasoning.

Question

Which of the following is NOT true about PHP traits? (Choose 2)

Options

  • AMultiple traits can be used by a single class.
  • BA trait can implement an interface.
  • CA trait can declare a private variable.
  • DTraits are able to be auto-loaded.
  • ETraits automatically resolve conflicts based on definition order.

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    76% (22)
  • C
    7% (2)
  • D
    14% (4)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice