Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
georgejecook
Level 7

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?
George Cook
https://linkedin.com/in/georgejecook/
Roku developers slack group (http://tiny.cc/nrdf0y) : georgejecook

Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework
0 Kudos