• 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
difference between a method and function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

difference between a method and function?


  • Subject: difference between a method and function?
  • From: Ben Dougall <email@hidden>
  • Date: Sun, 24 Aug 2003 21:37:05 +0100

this might be a silly question but... i'm writing a bit of code that is contained pretty much within one object, apart from using the pre-written cocoa objects, and i'm wondering, from that point of view (from within one object), what's the difference between a method and a function? what are the advantages / disadvantages of either if any?

- (void)aMethod:(int) x
{
...
}

void aFunction(int x)
{
...
}
_______________________________________________
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.

  • Follow-Ups:
    • Re: difference between a method and function?
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: difference between a method and function?
      • From: publiclook <email@hidden>
  • Prev by Date: 10.3 and filesystem notifications
  • Next by Date: Re: difference between a method and function?
  • Previous by thread: Re: 10.3 and filesystem notifications
  • Next by thread: Re: difference between a method and function?
  • Index(es):
    • Date
    • Thread