Jnr PHP/Codeigniter Developer Question:
Download Questions PDF

Explain me in PHP what is the difference between a Class and an Interface?

Answer:

Interface defines the methods and their parameters. Class can then implement the interface (or multiple interfaces) and needs to define such methods. So interface defines outline and class-specific behaviour.

Download Jnr PHP/Codeigniter Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What is routing in Codeigniter?Explain how can we get the browser properties using PHP?