Composite Design Pattern in Java

preview_player
Показать описание
Learn: Properties & Implementation with example in Java of Composite Design Pattern

Do Watch video for more info

This Problem is synonym of following problems:
Composite design pattern java,
real time example for Composite design pattern in java,
when to use Composite design pattern,
Composite design pattern in java,
Composite design pattern in spring,
design patterns in java,
Composite design pattern implememt

Please check video for more info:

CHECK OUT CODING SIMPLIFIED

★☆★ VIEW THE BLOG POST: ★☆★

I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 200+ videos.

★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★

★☆★ Send us mail at: ★☆★

Рекомендации по теме
Комментарии
Автор

Thank you so much bhai.🙏 I was very confused after watching other videos related to design patterns on YouTube but u explained it in a very imple way. Thanks again.

prateekgupta
Автор

It's very impressive and specialy for using the accounting terms . Thank you Sir

HafizurRahman-drxe
Автор

thank you bro... now everything is clear.... 😊🙏

nihalin
Автор

very good.. short and crisp... understood ... keep it up...

tapanparida
Автор

This isn't specific to the Composite Design Pattern at all, but there are two problems with the .remove() method you have created for CompositeAccount. 1. You are adding it rather than removing it! 2. More subtle: even if you change the .add() to .remove(), because we have not overridden the .equals() inherited from Object class, if we create another Account instance with identical data in it, it will neither be found with a .contains() nor removed if passed to .remove(). This isn't specific to this Design Pattern, but always good to keep in mind.

jvsnyc
Автор

Correction required: your removeaccount has list.add method.

enigma_
Автор

Shouldn't it be recursive? It may have multiple levels of composites.

prashantsomvanshi