Not exactly. I was hoping for a more concrete example. Some people like to use things like animals, other people might talk about cars, but the point is to have something concrete to work with. It may be best if you provided the actual example of the things that you are trying to model.Quote:
Originally Posted by ajoqiqu
At the moment, I would be inclined to write:
Code:class Base
{
// ...
};
class X
{
// ...
private:
Base* property1;
Base* property2;
};
int main()
{
X object1;
// ...
}