Example Code
// Association or non-composite Aggregation
// File dependencies
#include "Class2.h"
using namespace std;
#include <vector>
class Class1
{
private:
// private roles
vector< Class2* > rClass2;
};
// Composite Aggregation
// File dependencies
#include "Class2.h"
using namespace std;
#include <vector>
class Class1
{
private:
// private roles
vector< Class2 > rClass2;
};