[Tutor] Keeping a list of attributes of a certain type

Guilherme P. de Freitas guilherme at gpfreitas.com
Thu Jan 14 03:24:10 CET 2010

Hi everybody,

Here is my problem. I have two classes, 'Body' and 'Member', and some
attributes of 'Body' can be of type 'Member', but some may not. The
precise attributes that 'Body' has depend from instance to instance,
and they can be added or deleted. I need any instance of 'Body' to
keep an up-to-date list of all its attributes that belong to the class
'Member'. How do I do this?



Guilherme P. de Freitas

More information about the Tutor mailing list