Respuesta :

Answer:

Option 2: instance

Explanation:

Instance method is a method that is called through an object created from a class.

In object oriented programming, we can define a class which is comprised of attribute(s) and method(s). We can create whatever number of objects from the class. Each object created from the class is known as Instance. Each of the class instances will possess same set of attributes and methods. To use the method, the syntax is as follows:

instanceName.methodName()

For example by presuming we have a class Rectangle with a method calcArea(). To call the calcArea() method, we need to create an object from the class and use it to call the method.

  1. Rectangle rect1 = new Rectangle(3, 5);
  2. rect1.calcArea();
ACCESS MORE
EDU ACCESS
Universidad de Mexico