[Gambas-user] "Frozen" collections - quick answers only needed
Benoît Minisini
gambas at ...1...
Thu Jul 16 00:22:29 CEST 2015
Le 16/07/2015 00:17, adamnt42 at ...626... a écrit :
> Hi all,
>
> I have a class that exposes a collection of child objects as a
> property. How can I make it that the only object that can add or
> delete child items to/from the collection is that class? In other
> words, no client class is allowed to Add a new item, or Remove or
> nullify any existing item.
>
> tia bruce
>
You have to create your own collection class that behaves like you want.
--
Benoît Minisini
More information about the User
mailing list