• 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: What is the equivalent of a C++ pure-virtual function in Objective-C?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the equivalent of a C++ pure-virtual function in Objective-C?


  • Subject: Re: What is the equivalent of a C++ pure-virtual function in Objective-C?
  • From: Dave DeLong <email@hidden>
  • Date: Sun, 11 Jan 2009 19:24:23 -0700

They're called "Protocols" and were the original inspiration for Java's interfaces:

http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_7_section_1.html

HTH,

Dave

On 11 Jan, 2009, at 7:20 PM, Michael A. Crawford wrote:

I want to force derived classes to implement a given interface without provided a default implementation. Does the concept exist in Objective-C (I'm almost sure it does)? If so, what does the syntax look like?

-Michael
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >What is the equivalent of a C++ pure-virtual function in Objective-C? (From: "Michael A. Crawford" <email@hidden>)

  • Prev by Date: What is the equivalent of a C++ pure-virtual function in Objective-C?
  • Next by Date: Re: What is the equivalent of a C++ pure-virtual function in Objective-C?
  • Previous by thread: What is the equivalent of a C++ pure-virtual function in Objective-C?
  • Next by thread: Re: What is the equivalent of a C++ pure-virtual function in Objective-C?
  • Index(es):
    • Date
    • Thread