Roku Developer Program

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

7.1 and custom inheritance

In the 'Creating Custom Components' section of the updated documentation it says:

Calling a function in an extended component with the same name as in the custom component from which it is extended will call the function in the extended component. This allows you to override (or overload) a function name to perform differently depending on the component from which it is called.

However, when I try it, I get:

--- SUB or FUNCTION defined twice. (compile error &had)

The error points to the child component. Is there something special that needs to be done?
0 Kudos
1 Reply
Level 8

Re: 7.1 and custom inheritance

can you whip and [ code] [ /code] post a short example?
0 Kudos