Instance methods allow us to define the behavior of an object.
Lets say you are wanting to get the area of a specific rectangle object you created using the Rectangle class. To do this, you would need to define an instance method that will return the area of our rectangle object. It is important to remember that instance methods belong to the specific instance of your object.
Creating Instance Methods
The general form of an instance method is as follows:
To call instance methods we use the following format: objectName.methodName(parameters);
The objectName is the name of the object we are calling the method on.
The methodName is the name of the instance method we are calling.
The parameters are the inputs we give the method (if any).