Forum Discussion

georgejecook's avatar
georgejecook
Streaming Star
8 years ago

Subclassing - return values and overriding

Hi, if I have component <MyWidget> which has a method
function GetName() as string
return "MyWidget"
end function

and I have MyChildWidget, which extends MyWidget, which in turn overrides GetName() then, how can MyChildWidget get the resilt of MyWidget. I currently see both code paths are executed (i.e. if I log in both, they both get called); but I don't see any means of getting the base.GetName() method value in the subclass.GetName() value.

Is there such a mechanism in SceneGraph/BS?
No RepliesBe the first to reply