• 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: Abstract classes and methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Abstract classes and methods


  • Subject: RE: Abstract classes and methods
  • From: "Smith, Bradley" <email@hidden>
  • Date: Wed, 29 Aug 2001 13:11:24 +0100

Okay, classic OO example. I have an abstract class called Shape.
Shape is meaningless on its own but if you subclass it e.g. Square, Circle
etc. then those classes can be used. What you don't want to do is let anyone
using your classes instantiate an instance of class Shape directly.

Brad

>
> If you describe a situation which would be impossible or at
> least quite
> inconvenient to solve without abstract classes -- I am not
> aware of any such
> -- I'll do my best to answer.
> ---
> Ondra Cada
> OCSoftware: email@hidden http://www.ocs.cz
> private email@hidden http://www.ocs.cz/oc


  • Follow-Ups:
    • Re: Abstract classes and methods
      • From: stuartbryson <email@hidden>
    • Re: Abstract classes and methods
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Is K&R Still Relevant?
  • Next by Date: Re: Is K&R Still Relevant?
  • Previous by thread: Re: Abstract classes and methods
  • Next by thread: Re: Abstract classes and methods
  • Index(es):
    • Date
    • Thread