[DGD] Inheriting the same program twice

Thomas Rice thomas.rice at gmail.com
Tue Apr 19 09:46:01 CEST 2005


> But X also defines a data field. The functions in X operates mainly on
> this data field. In A I have need for two such data fields.
> 
> Maybe I am not making sense.
> 
> Jimorie

Ah ok, I think I am following.

Perhaps you could implement X as a seperate object rather than
something you inherit.

That way A and B could clone up and reference their own copy of X, and
you could have A and B then call functions in X to retrieve the values
you want.

That might work (keeping in mind I don't know the specific application
you're working on).




More information about the DGD mailing list