jspωiki
Method

Overview#

Method in programming is a Subroutine associated with a class.

Method defines the behavior of the objects that are created from the class.
A Method is an action that an object is able to perform. The association between Method and class is called binding.

Methods are sometimes confused with functions, but they are distinct. Function is independent and NOT associated to a Class. (Unlike a Method).

Method Example#

Consider the example of an object of the type 'person,' created using the person class. Methods associated with this class could consist of things like walking and driving.

More Information#

There might be more information for this subject on one of the following: