That would violate the propagation of changes principle. It 'll be still be greater if u can pls put java coding examples for each one. Like a car is made of an engine and doors. An instance of company is created with an instance of person supplied as.
In other words, a person may have multiple bankaccounts. This means you'll a have to use a structure to keep multiple bankaccounts in a single person.
This article can be used as a reference for your modelling reference. How do we represent this situation in java and uml. You can rate examples to help us improve the quality of examples. Here is an example of composition and aggregation, in terms of java code. But this only works if you have.
The video is based on slides that introduce the concepts and include examples. By looking at this code, you can gauge differences between these two.
These are the top rated real world java examples of br.