Introduction
Methods let you group actions inside a class. The $this keyword helps you access the current object's properties and methods.
When you want to organize code that belongs to an object.
When you need to change or read data inside an object.
When you want to reuse code inside the same object.
When you want to keep data and actions together for clarity.
When you want to create multiple objects with similar behavior.