The Lingo equivalent of a class is a parent script or a behavior 
script.  Both of these allow you to create as many "instances" of 
them as you want.  You generally create an object from a parent 
script by caling its "new" handler.  And you generally create an 
instance of a behavior by attaching the script to a sprite.

For more details on how OOP works in Lingo, see my (still unfinished) 
on-line book at:]

   http://www.furrypants.com/lingo

I don't get into inheritance in there yet.  The basic idea is that in 
Lingo, an object can create it's own ancestor object (which it then 
inherits from).  You write a script which has common code, and then 
create different sub-objects who instanciate the common object as 
their ancestor.  Check out the "ancestor" keyword in the Lingo 
dictionary.

Happy Holidays,

Irv

At 10:52 PM -0500 12/23/01, [EMAIL PROTECTED] wrote:
>I have a bit of a problem with my understand of how object oriented
>programing works with Lingo in relation to classes. I have been doing
>some reading and am baffled by the idea of a class. Is this just another
>way of saying library or is this related to custom functions? And if 
>it is just
>custom functions, how is this different than a library of scripts? And does
>Superclass mean the same thing as inheritance? I don't know if this is
>something that can be condensed into a small answer, a friend of mine
>that does programming says that it took her a whole year in during
>College to fully understand, and still she can't speak about it in a way that
>makes total sense.
>
>I am a designer and have little background in actual hardcore
>programming (Java, C++ and such). What I know of actual programming
>is for the most part self-taught and I am not working on a project for a job,
>this is just for my personal understanding and deeper understanding of
>programming as a whole. I know that there is power in class and hope
>that understanding it better will improve my projects
>
>Thanks in advance,
>william m-
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/lingo-l.cgi  To post messages to the list,
>email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo.  Thanks!]


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to