PHP·98 questions

What are traits?

Answer
trait Name { methods }.
use TraitName; inside class.
Solve multiple inheritance problem.
Multiple traits can be used.
Conflicts are explicitly resolved.
Was this answer helpful?

More questions in this topic

Related questions from other topics