Composite Design Pattern with Java code

preview_player
Показать описание
What is composite design pattern and how to implement composite pattern in java

------------------------------------------------
Follow me on:
-----------------------------------------------
#design-pattern #javaDesignPattern
Рекомендации по теме
Комментарии
Автор

simply superb .. all the patterns presented with good examples thanks Gourab

srikanthdannarapu
Автор

simply the best simple short to understand, thx

MrQVeeBoo
Автор

This is generally good, I will note that in the .removeAccount() method of BankAccount, since we do not override the .equals() method that the List<Account> .remove() method will delegate to, that if we pass an instance with identical data values, it would not be removed, because the .equals() inherited from Object tests for identity, i.e. that the reference is identical rather than that they contain the same data. We could also object that the same account can be added any number of times, but that is getting away from the point of this video.

jvsnyc
Автор

I'm gettign an error in the User class, it doesnt like the bankname or balance. i followed the video exactly, it makes no sense.

WaveForceful