Please excuse the poor example/analogy, I'm only interested in the code sample.
I have a Dinner_Chair class (inherited from Chair class). It is as follows.
Dinner_Chair = class(Chair)
Private
theUser: Person;
Public
Dinner_Chair()
{
Back = new Back();
Seat = new Seat();
}
End
I also have a simple Person class, that as you can see, is associated with the Dinner_Chair class.
My question is this. Because the Person class is not instantiated in the Dinner_Chair class, is this an example of aggregation?
This is to consolidate my understanding of entry level OOP relationships.