<<< Previous question <<< Question ID#0703.md >>> Next question >>>
Which of the statements about traits below are true ?
- A) PHP is "single inheritance" so traits allow coders to reuse sets of methods from the trait freely in several independent classes
- B) An inherited member from a base class is overridden by a member inserted by a Trait, but members from the current class override Trait methods.
- C) If two Traits insert a method with the same name in a class that uses them, a fatal error is produced and this naming conflict can not be bypassed
- D) All variants are true
Answer
Answer: A, B