Loffen
Well-known member
I have two classes, like these:
But only the first messagebox appears... What am i doing wrong? I get no errors or anything..
Code:
Class MainClass
Inherits SubClass
Private NewClass as SubClass
Public Function Test()
NewClass = new SubClass
Messagebox.show("TestBox :p")
NewClass.DoSomething()
End Function
Public Overrides SubFunction()
Messagebox.show("Yup it works!!")
End Function
End Class
Class SubClass
Public Function DoSomething()
Do something
SubFunction
Do something
End Function
Public Overridable Function SubFunction()
Should be overwritten
End Function
End Class
But only the first messagebox appears... What am i doing wrong? I get no errors or anything..
Last edited by a moderator: