fb:porticula NoPaste
Base und Strings
Uploader: | MOD |
Datum/Zeit: | 20.11.2011 14:51:11 |
Type Animal Extends Object
As String nam = "foo"
As Integer n = 7
End Type
Type Dog Extends Animal
Declare Constructor (name_ As String)
Declare Sub test
End Type
Constructor Dog (name_ As String)
base.nam = name_
base.n = 6
nam = name_
n = 6
End Constructor
Sub Dog.test
Print base.nam
Print base.n
Print nam
Print n
End Sub
Sub main
Dim As Dog foo = "bar"
foo.test
End Sub
main
Sleep