Hello,
I have a small problem with the code
1 The application package contains two pacInterface1 and pacObject1. The first is composed of interface and the second classes that implement these interfaces. Thus we will find one class per interface.
Application 2 (the one that interests me) contains two such packages pacInterface2 and pacObject2.
Here is what I have:
Here, it is not logical that there is an aggregation and a legacy at the same time, it will turn one or the other. What do you think I turns aggregation or inheritance? Any help on this is appreciated. Thanks in advance.Code:ObjectPack2 implements InterfacePack2 { Public ObjectPack1 obj; Public objectPack2 (obj obj ) { great(obj ); this. obj = ObjectPack1; } }
Bookmarks