four pillars of OOP in PHP?

  1. Encapsulation – Wrapping data & methods in a class.
  2. Abstraction – Hiding implementation details.
  3. Inheritance – Reusing parent class in child class.
  4. Polymorphism – Same method name with different behavior.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *