So, I’ve never come across this in Xojo (not sure if in any other language actually).
The behaviour I’m encountering is the following:
Child class’ MethodC calls Super.MethodA. So, I expected “This is the Father” to show (since I’m calling the Super and I thought it would call the MethodB in the same level of the hierarchy) but “This is the Child” shows instead. Is this the normal OOP behavior and I never came across or languages diverge on this behavior?
PS Only MethodB is overriden in ChildClass.
FatherClass
- MethodA {
Self.MethodB
}
-MethodB {
MsgBox("This is the Father")
}
ChildClass
- MethodC {
Super.MethodA
}
- MethodB {
MsgBox("This is the Child")
}