• 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: Inheritance implementation question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance implementation question


  • Subject: Re: Inheritance implementation question
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 10 Apr 2002 08:10:58 +1000

On 10/4/02 2:36 AM +1000, Brennan, email@hidden, wrote:

> Lets assume we have an abstract class called 'superThing' and another class
> called 'Thing'.
>
> Let's say several other (non abstract) classes inherit from 'superThing', and
> let's call them 'Thing', 'Thang' and 'Thung'.
>
> 'superThing' has a property called 'type' - the subtype - which, in a given
> instance a constant like 'Thing type' or 'Thang type' or 'Thung type'.
>
> What I want to express is something like:
>
> make new superThing with properties {type:Thing type}
>
> Now, this doesn't look right of course. You can't make an instance of an
> abstract class, but is there a way to express this? The main point is to be
> able to soft code the subtype in the applescript.

I can't say the idea appeals much to me, but I have seen something vaguely
similar in some apps. It involves making superThing, which defaults to a
particular type, and then setting its type in a separate command. And if you
do that, I can't see the need for the subclasses at all.

--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Finder Version Wrong in OS X
  • Next by Date: Re: Quark question
  • Previous by thread: Re: Inheritance implementation question
  • Next by thread: RE: Inheritance implementation question
  • Index(es):
    • Date
    • Thread