Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

What are the difference between abstract class and interface?

PHP Interview Question
PHP Interview Question

Answer:

Abstract class: abstract classes are the class where one or more methods are abstract but not necessarily all method has to be abstract. Abstract methods are the methods, which are declare in its class but not define. The definition of those methods must be in its extending class.

Interface: Interfaces are one type of class where all the methods are abstract. That means all the methods only declared but not defined. All the methods must be define by its implemented class.

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
How can I make a script that can be bilingual (supports English, German)?What are the advantages of stored procedures, triggers, indexes in PHP?