Example Code
// Association or non-composite Aggregation
// File dependencies
#include "Class2.h"
class Class1
{
private:
// private roles
Class2* rClass2[4];
};
// Composite Aggregation
// File dependencies
#include "Class2.h"
class Class1
{
private:
// private roles
Class2 rClass2[4];
};
Was this helpful?