Jump to content

Instance method

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TakuyaMurata (talk | contribs) at 04:10, 18 March 2003. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science object-oriented programming, an instance method is a method invoked with respect to an instance of a class. Instance methods are often used to examine or modify the state of a particular object.

In Java, constructors are instance methods which have the same name as their class.

See also: class method, static method, instance, instance variable