Re: Instance methods VS. Class methods
Re: Instance methods VS. Class methods
- Subject: Re: Instance methods VS. Class methods
- From: Carlos Weber <email@hidden>
- Date: Fri, 23 Nov 2001 19:53:08 -1000
On Friday, November 23, 2001, at 06:19 , Matt Ronge wrote:
Hi,
I've read through Apple's docs, read through Learning Cocoa, and I have
searched all over the web. Yet none of them have shed light on the
difference between instance methods and class methods?
Check out the following URL (it's on your hard disk):
file:///Developer/Documentation/Cocoa/ObjectiveC/index.html
This is Apple's quite good manual on the Objective-C language, and
object-oriented programming in general. Not getting the distinction
between class and instance methods is probably a symptom of not grasping
the distinction between a class object and an instance: in brief, a
class method is a request sent to the class object to do something that
the class can do, such as create a new instance of the class. Instance
methods are requests to specific instances of the class, e.g., a request
to a specific view object to display itself.