+ 1
Difference between inheritance and aggregation?
2 Answers
+ 1
inheritance "is a" of something.
so like a manager and a custodian "is a" employees. -- I know thats not proper english but I gets the point across
aggregation "is made of" or "is a part of"
so like a laptop "is made of"
screen
keyboard - is made of keys
battery
etc.
so inheritance allows the children classes to take stuff or need to use stuff from the patent class.
aggregation uses other objects to make another object.
hope this helps!
0
can u make it more clear()