Jnr PHP/Codeigniter Developer Question:

Download Job Interview Questions and Answers PDF

Explain me what are Traits?

Jnr PHP/Codeigniter Developer Interview Question
Jnr PHP/Codeigniter Developer Interview Question

Answer:

Traits are a mechanism that allows you to create reusable code in languages like PHP where multiple inheritance is not supported. A Trait cannot be instantiated on its own.

It’s important that a developer knows the powerful features of the language (s)he is working on, and Trait is one of such features.

Download Jnr PHP/Codeigniter Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me what is the default URL pattern used in Codeigniter framework?Tell me what does MVC stand for and what does each component do?