Difference between revisions of "Method"

From GNUstepWiki
Jump to navigation Jump to search
(Removed Remote Method, was supposed to be Remote Message... :-})
(Added links to instance object)
Line 3: Line 3:
 
== Class Method ==
 
== Class Method ==
  
A method that can be used by the [[object|class object]] rather than by instances of the class.
+
A method that can be used by the [[object|class object]] rather than by [[object#instance_object|instances of the class]].
  
 
== Factory Method ==
 
== Factory Method ==
Line 11: Line 11:
 
== Instance Method ==
 
== Instance Method ==
  
Any method that can be used by an instance of a class rather than by the [[object|class object]].
+
Any method that can be used by an [[object#instance_object|instance of a class]] rather than by the [[object|class object]].

Revision as of 17:22, 31 March 2006

A method is a procedure that can be executed by an object.

Class Method

A method that can be used by the class object rather than by instances of the class.

Factory Method

Same as class method.

Instance Method

Any method that can be used by an instance of a class rather than by the class object.