instance method

created by N-Wing
(thing) by Nicopa (1.2 y) (print)   (I like it!) Sun Sep 10 2000 at 20:32:49

In Object Oriented Programming, a method that perform some operation in some object instance. Such a method is said to receive an implicit parameter: a reference of the instance. This reference is called this in C++/Java and self in Smalltalk and Objective C

All methods are by default instance methods. But when you add the C++/Java "static" modifier, or prefix the declaration with a plus sign, you get a class method instead.

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.