Composite Design Pattern (C#)

preview_player
Показать описание
The composite design pattern explained with examples in code.

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

Channels like these is why I pay my broadband bills❤️.
Thanks brother.
Got what I was looking for.

pradeepdm
Автор

Thank you for all of the design pattern videos, it's been very helpful for studying for my test :))

Somerandomdudefromtheinternet
Автор

Your channel is a gem! Which book have you read about design patterns?

rafaspimenta
Автор

Very nice explain . but some what i feel lost in the example and missed the actual usage and applicability of the pattern.
may be you can explain by taking example of sending mails as we can send mail to single user and group of users which having same functionality i.e send
and group can contains nested group and members .

priyanshu
Автор

when i create the composite class that returns a list of itself without interface it gives StackOverflow exception and i understand it's normal, , however, when the class implements interface like your example it doesn't throw the exception why??

i noticed that when using interface the list children would be created when they are called like lazy loading! so I think this is the reason, , but again why it's lazy loading when using interface ??

TheNorthRemember
Автор

Матрёшка pattern! Hope you got Babushka pattern too

Eugene.g