Re: Several questions
Re: Several questions
- Subject: Re: Several questions
- From: Don Messerli <email@hidden>
- Date: Fri, 06 Jul 2001 17:08:40 -0400
An instance method has access to the instance data of an instantiated
object. This is the same as a member function in C++.
A class method does not have access to any instance data since it doesn't
belong to a particular object. There is no "self". This is the same as a
static member function in C++.
Don
On 7/6/01 3:28 AM, "jgo" <email@hidden> wrote:
>
> From: "John C. Randolph" <email@hidden>
>
> Date: 2001 July 02 21:11:36 -0700
>
>> On Monday, 2001 July 02 at 18:26, Hisaoki Nishida wrote:
>
>> I have some general questions about Cocoa programming...
>
>> 2. What's the difference between - and + (in method declarations)?
>
>
>
> - means an instance method. + means a class method.
>
>
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.
>
>
John G. Otto Nisus Software, Engineering
>
www.infoclick.com www.mathhelp.com www.nisus.com software4usa.com
>
EasyAlarms PowerSleuth NisusEMail NisusWriter MailKeeper QUED/M
>
Will program Macs for food.
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev