• 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
Multiple inheritance and objective-c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple inheritance and objective-c


  • Subject: Multiple inheritance and objective-c
  • From: Mark Dawson <email@hidden>
  • Date: Mon, 21 Mar 2005 15:11:56 -0800

I an objective-c architecture question:

I have class B that inherits from class A. I now need to make a class C. It turns out that 90% of the functionality (including class variables) would be shared between B's implementation (its subclass implementation) and C's implementation. In C++, I would break out that functionality, creating class D. Class B would inherit from A AND D, while C would inherit from D. I know that objective-c doesn't have multiple inheritance, so I was wondering how similar class functionality is handled there. Note that I DO have class variables (instance variables), which precludes using categories to support this.

Mark

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Multiple inheritance and objective-c
      • From: "John C. Warner" <email@hidden>
  • Prev by Date: Re: NSTabView won't switch in Jaguar
  • Next by Date: Re: Programatically creating/saving an NSImage;
  • Previous by thread: Re: NSTabView won't switch in Jaguar
  • Next by thread: Re: Multiple inheritance and objective-c
  • Index(es):
    • Date
    • Thread