• 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 "A class which must be subclassed" ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is "A class which must be subclassed" ?


  • Subject: Re: What is "A class which must be subclassed" ?
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 18 Oct 2008 20:28:42 -0700

Thanks for the replies.

Regarding making it a protocol, I don't want to do that because Foo is really a class which implements many methods that are common to its subclasses.

On 2008 Oct, 18, at 8:53, Andy Lee wrote:

Would it make sense to reorganize so the instantiation is done by the Bar class?

Well, actually Foo keeps a weak reference to Bar anyhow. So, no, not really.


On 2008 Oct, 18, at 18:16, Michael Ash wrote:

The question is ... does it make *sense* to create [an instance of the base class Foo].

The answer is no.

If the answer is no, then it's an abstract class.

Is my answer a ^sufficient^ condition so that I can state in my documentation that "Foo is an abstract class" ?


_______________________________________________

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


  • Follow-Ups:
    • Re: What is "A class which must be subclassed" ?
      • From: "Michael Ash" <email@hidden>
References: 
 >What is "A class which must be subclassed" ? (From: Jerry Krinock <email@hidden>)
 >Re: What is "A class which must be subclassed" ? (From: "Michael Ash" <email@hidden>)

  • Prev by Date: Re: Object is not reachable from this managed object context
  • Next by Date: Re: NSTextfield in tableColumn changing color slow
  • Previous by thread: Re: What is "A class which must be subclassed" ?
  • Next by thread: Re: What is "A class which must be subclassed" ?
  • Index(es):
    • Date
    • Thread