On Jan 26, 2007, at 7:26 PM, Stephen A. Cochran Lists wrote:
On Jan 26, 2007, at 9:13 PM, Norman Palardy wrote:
void ?
But isn't a constructor actually returning an instance of the class?
In the following message:
<http://support.realsoftware.com/listarchives/realbasic-plugins/
2005-11/msg00047.html>
Joe implies that a function called "Constructor" in the Method
definition is special, acting like a real constructor. From that I
would assume you could do either of the following:
peep1 = new myPersonClass()
peep2 = new myPersonClass("Fred", 37)
And while I know in C++ you don't declare a return type, I wasn't
sure in RB.
No return type
RB constructors do not allocate or create anything they just
initialize things
You can actually call a constructor on a class at ANY tie just like a
method
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>