corwin42 Expert Licensed User Longtime User Jan 14, 2012 #1 I create a class A for my object which extends class B. In class A I can use @Hide to hide public methods. But all public methods of class B are shown in the IDE. How can I hide public methods from class B?
I create a class A for my object which extends class B. In class A I can use @Hide to hide public methods. But all public methods of class B are shown in the IDE. How can I hide public methods from class B?
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2012 #2 You will need to override the methods and add @Hide annotation. With that said it is usually better to use the composite pattern instead of inheritance when wrapping an object (composite pattern is better in most cases compared to inheritance).
You will need to override the methods and add @Hide annotation. With that said it is usually better to use the composite pattern instead of inheritance when wrapping an object (composite pattern is better in most cases compared to inheritance).
corwin42 Expert Licensed User Longtime User Jan 15, 2012 #3 Hmm, I think I will use the override and @Hide method. Thanks.
tchart Well-Known Member Licensed User Longtime User Mar 24, 2015 #4 corwin42, did you ever find a successful approach to hiding the other class?