Question: What is an interface in PHP?Answer: An interface is a collection of abstract methods. Classes that implement an interface must provide concrete implementations for all its methods.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Object-Oriented Programming (OOP)?
- Explain the four pillars of OOP.
- How does inheritance work in PHP?