Hi,
you could create the default constructor on your own.
class MyBase
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
|
Option Explicit
Dim myInt As Integer
'default constructor
Public Sub MyBase()
myInt = 123
End Sub
Public Sub MyBase(i As Integer)
myInt = i
End Sub
Public Function ToString() As String
ToString = CStr(myInt)
End Function
|
class Derived superclass: MyBase
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Option Explicit
Dim myName As String
'default constructor
Public Sub Derived
Base.myInt = 456
myName = "derived"
End Sub
Public Sub Derived(aName As String)
MyName = aName
End Sub
Public Function ToString() As String
ToString = Base.ToString & " - " & CStr(MyName)
End Function
|
regards
OlimilO