I am studying OOP in PHP and I have no case study to realize the necessity of “Interface” and its difference from “abstract class” . Why do not we use directly “abstract class” instead of “Interface” . If we do not have an “Interface” what will happen?
I’ll appreciate that you can give me an example to realize the concept of “Interface” and its difference from using an “abstract class ” instead.
2