Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 727 Bytes

0703.md

File metadata and controls

15 lines (12 loc) · 727 Bytes

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