realbasic-nug
[Top] [All Lists]

Re: Constructors

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Constructors
From: Thomas Reed <thomasareed at earthlink dot net>
Date: Fri, 4 Jan 2002 12:49:42 -0600
>I¹m trying to create two object constructors in one class. One that takes
>two string arguments and another that takes a string and an object.

I believe that RB doesn't allow this kind of thing with constructors.
You could make methods just like these that AREN'T constructors, but it
seems that constructors have to have unique numbers of arguments.

BTW, it is not necessary for a constructor to return anything.  The
constructor does not actually create anything, it is more of an
initializer called automatically after RB creates the object.

-Thomas

Personal web page:                 http://home.earthlink.net/~thomasareed/
My shareware:            http://home.earthlink.net/~thomasareed/shareware/
Pixel Pen web pub. guide: http://home.earthlink.net/~thomasareed/pixelpen/

The bus station is the place where the bus stops. The train station is the
place where the train stops. So if I have a workstation...



<Prev in Thread] Current Thread [Next in Thread>