‎2010 Jun 21 7:31 AM
Hello everyone,
in the class builder (se24) I have the choice to create local types (button in the toolbar) and internal types (tab). The only difference I know is that local types are always private while internal types can go from private to public.
Is there a rule when I should favor internal types over local types (apart from the visibility) and vice versa?
Regards,
Alej
‎2010 Jun 21 8:31 AM
Hi,
use local types (button in the toolbar) ->if you want to create local classes and interfaces
and internal types (tab) -> if you want to create local data types .
‎2010 Jun 21 8:27 AM
local types are always private
These types are private within the class pool, which means are private to global class itself + any local classes you define within the class pool. Outside are indeed inaccessible.
internal types can go from private to public
These types are private to global class but unless are set explicitly as public there are invisible to all local classes defined in class pool. The visibility of these data types can be individualy set.
Is there a rule when I should favor internal types over local types (apart from the visibility) and vice versa?
I think the only advantage from having "internal types" over local types is that it can be accessed by subclass or friend class depending on the type of visibility you have choosen, but are invisible to all local classes (except for being declared as public). In contrary all local types can stay only local, nothing more.
Regards
Marcin
‎2010 Jun 21 8:31 AM
Hi,
use local types (button in the toolbar) ->if you want to create local classes and interfaces
and internal types (tab) -> if you want to create local data types .