• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Instance methods VS. Class methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Instance methods VS. Class methods
      • From: Matt Ronge <email@hidden>
References: 
 >Instance methods VS. Class methods (From: Matt Ronge <email@hidden>)

  • Prev by Date: Instance methods VS. Class methods
  • Next by Date: DOcument Icons
  • Previous by thread: Instance methods VS. Class methods
  • Next by thread: Re: Instance methods VS. Class methods
  • Index(es):
    • Date
    • Thread