Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
14
Task/Classes/REALbasic/classes-1.realbasic
Normal file
14
Task/Classes/REALbasic/classes-1.realbasic
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Class NumberContainer
|
||||
Private TheNumber As Integer
|
||||
Sub Constructor(InitialNumber As Integer)
|
||||
TheNumber = InitialNumber
|
||||
End Sub
|
||||
|
||||
Function Number() As Integer
|
||||
Return TheNumber
|
||||
End Function
|
||||
|
||||
Sub Number(Assigns NewNumber As Integer)
|
||||
TheNumber = NewNumber
|
||||
End Sub
|
||||
End Class
|
||||
2
Task/Classes/REALbasic/classes-2.realbasic
Normal file
2
Task/Classes/REALbasic/classes-2.realbasic
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Dim num As New NumberContainer(1) ' call the constructor
|
||||
num.Number = num.Number + 5 ' call both Number methods
|
||||
Loading…
Add table
Add a link
Reference in a new issue