 | Let a UML Diagram capture the real world example of bank accounts stocks, mutual funds, and portfolios
 | List base class as Asset |
 | Let Commodity extend Asset (there are 2 commodity types)
 | Stock extends Commodity (a leaf) |
 | MutualFund extends Commodity (a leaf) |
|
 | Let BankAccount extend Asset (a leaf) |
 | Let Portfolio (a Composite) extend Asset
 | Can store Stocks, BankAccounts, (leafs) or other Portfolios or MutualFunds (Composites)
because they are all assets |
|
 | Place these methods in the correct place
listAll add getValue |
|