Composite
Declare reference type variable as class member.
make small group of class, and then make class by combinatopm pf these classes.
How to choose relation between inherit or composite?
inherit : A is B.
composite : A has B. 90%
ex) Circle is Point. < Circle has Point.(Composit relation!)
Last updated