In traits functions must have bodies

Home Forums Bugs In traits functions must have bodies

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1387
    jurgenmuca
    Participant

    Fatal error: Non-abstract method Database::read() must contain body in C:\xampp\htdocs\OOPtutorial\index.php on line 17

    Unlike interfaces, traits must have their body declared, the difference between traits and classes is that a class can implement multiple traits.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.