Methods

Parham has two types of methods: component methods and class methods.

A component method does not belong to any class.

A class method belongs to a class. Therefore, it is called on an object of that class. In addition, in the body of the method, it is possible to access the fields of that object. Finally, in a method class it is possible to use “this” keyword to point to the object that the method is called on it.