Answer the question
In order to leave comments, you need to log in
What are interfaces and abstract methods?
Good afternoon, I started to learn OOP using the PHP language. Read about interfaces and abstract methods. I wanted to clarify a couple of points. Do I understand correctly that when describing an interface, we indicate which public methods must be present in the class that use this interface? And abstract methods are described in order to know which methods must be present in the descendant class? Did I understand everything correctly? And why else would interfaces and abstract methods be used?
Answer the question
In order to leave comments, you need to log in
What is the difference between an abstract class and an interface?
In which case is it better to use an abstract class, and in which interfaces?
When to use interfaces in PHP and when to use abstract classes?
Abstract classes and interfaces - when to use one or the other?
Abstract class with interface: generalization or implementation?
What is the role of interfaces in OOP?
What is the purpose of interfaces in programming?
Why do we need abstract classes (PHP)?
https://habr.com/post/351384/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question