• 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: obj-c newb question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: obj-c newb question


  • Subject: Re: obj-c newb question
  • From: Óscar Morales Vivó <email@hidden>
  • Date: Wed, 5 Nov 2003 10:33:46 +0100

So, can you explain to me the diff. between a class method and an instance method? I declared the GetDefaultDevice method with the -,
but I admittedly dont quite understand the difference between a class method and instance as my background is in C++ and I havent been
able to map this idea to anything that I'm currently familiar with ...

Think static member functions (C++). Associated with the class, as opposed to with object instances of it.


Except better, because they can be overwritten in derived classes. That's something that can be hacked in C++ but can't be done out of the box.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >obj-c newb question (From: Michael Stevenson <email@hidden>)
 >Re: obj-c newb question (From: "Mike R. Manzano" <email@hidden>)
 >Re: obj-c newb question (From: Michael Stevenson <email@hidden>)
 >Re: obj-c newb question (From: David Remahl <email@hidden>)

  • Prev by Date: window above main menu bar
  • Next by Date: Re: Advanced Reachability APIs
  • Previous by thread: Re: obj-c newb question
  • Next by thread: Re: obj-c newb question
  • Index(es):
    • Date
    • Thread