What is an instance method?

A. An instance method is piece of code called on a specific instance of the class. It is called with a receiver object.

B. An instance method is a piece of code that does not depend on any specific instances, just on the general class.

C. An instance method adds functionality to a class by creating private fields.

D. An instance method adds functionality to the class by printing out a result.

Respuesta :

Q&A Education