What is the difference between abstract class and interface in php?
Many differences occur between the interface and abstract class in php.
- Abstract methods can declare with protected, public, private. But in case of Interface methods stated with the public.
- Abstract classes can have method stubs, constants, members, and defined processes, but interfaces can only have constants and methods stubs.
- Abstract classes do not support multiple inheritance but interface support this.
- Abstract classes can contain constructors, but the interface does not support constructors.