Conecpt of Abstract class and interface in php?

I have researched Abstract classes and interfaces in PHP and found some best practice examples, but I’m still a little confused and failed several times in interviews due to this. So, from my experience I think the following is true:


Interface will have to be implemented in classes. For example:

interface BikeDrive{
    public function MotorCycleDriving($FootGear, $RightHandBrake)

Abstract class is a core functionality, for example every vehicle:

Abstract Class Drive(){


Please guide me through the concept.

Source: oop

Leave a Reply