Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Streaming Star

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
Roku developers slack group ( : georgejecook

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