• 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: Several questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Several questions


  • Subject: Re: Several questions
  • From: email@hidden
  • Date: Fri, 6 Jul 2001 14:06:02 -0700

>Well, I know what a class is, and I know what an instance is,
>but what is an "instance method" as opposed to a "class method"?
>I never considered the possibility that a method would be
>instantiated, as contrasted with data members/instance variables.

A class method can be called when there are no instances of the object.
It's very similar to having a public static method in Java. Class methods
do not have access to instance variables. The most common use of class
methods are factory methods that create and return an instance for you.


  • Prev by Date: interfacing c++ and cocoa/aqua
  • Next by Date: Re: Several questions
  • Previous by thread: Re: Several questions
  • Next by thread: file copying revisited
  • Index(es):
    • Date
    • Thread