Content deleted Content added
m typo fixes - spelling/grammar ( you can help! ) |
Adding a REALbasic example |
||
Line 16:
}
}
=== [[REALbasic]] ===
==== Example ====
Constructors in REALbasic can be in one of two forms. Each form uses a regular method declaration with a special name (and no return value). The older form uses the same name as the Class itself, and the newer form uses the name "Constructor." The newer form is the preferred one because it makes [[refactoring]] your class easier.
Class Foobar
// Old form
Sub Foobar( someParam as String )
End Sub
// New form
Sub Constructor()
End Sub
End Class
==Constructors Simplified==
|