Composite Design Pattern

preview_player
Показать описание

Welcome to my Composite Design Pattern Tutorial! The Composite design pattern is used to structure data into its individual parts as well as represent the inner workings of every part of a larger object.

The composite pattern also allows you to treat both groups of parts in the same way as you treat the parts polymorphically. This allows your objects to maximize complexity while also remaining dynamic.
Рекомендации по теме
Комментарии
Автор

Been watching your videos since I was a student, and years later as an engineer they're still relevant and excellent resource material. Thank you for all the work you've done, the community is forever grateful

Krazness
Автор

Thank you :) I'm mainly teaching topics that I guess are so complex that very few people are interested in them. I'm extremely happy with my community. So many people that I meet online are great friends that I wish I could meet in the real world. It is very gratifying for me to be able to help so many nice people!

derekbanas
Автор

Watching in 2023. Immortal content on design patterns.

mohmaaya
Автор

I really love your tutorials, really helps me out with my Desin Pattern exams.
Sooo much better than all the useless PowerPoints my school is giving me.
Keep up the good work!!

Robinhopok
Автор

If you aren't a CS instructor, you should be! I learn more from a few hours watching your videos than my professors can teach in weeks! Your explanations are top notch, keep up the great work. 

danielmelchior
Автор

From your tutorials on python and java to developing candy crush as an intern and later when I'll manage good with my tasks I'm going to get a junior software engineer position. I just want to say thank you!

majksu
Автор

I was little bit confused when i saw other implementations of this pattern, but with your implementation about the GROUPs and SONGs it was so easy to understand!! Thank you so much :)

mohamedguebli
Автор

Dude, you're maybe never gonna see this, but thanks a lot for all your design patterns video, I was struggling to understand in college, and my finals are near, this is a big help, much appreciation.

mywetaresocks_
Автор

You can use method overloading with any method. Just make sure that you use arguments with data types in different orders to get it to work

derekbanas
Автор

Another great video! Your videos have been a massive help to me over the past few months so I've donated a few quid via your website just to show my appreciation.

yukimushu
Автор

Mind has been blown with the simpleness you provide. Thank you

LariviereChris
Автор

Working with design patterns is all about cool tricks :)

derekbanas
Автор

Thank you very much :) I'm very happy that I was able to help. Good luck on your exam!

derekbanas
Автор

Best Java tutorials on the internet . Thank you !!!

Bubico
Автор

Yes Java, C++ and C# are OOP languages. It won't take that long to learn if you do a little every day and make fun projects. I've known people to learn just about everything in 2 months. They still have to use copy and paste code all of the time, but they know how to use Java pretty well

derekbanas
Автор

You're very welcome :) I'm glad you enjoyed it

derekbanas
Автор

U r Awesome dude. It just takes 20 minutes to understand each of ur videos :-).
That really made easy for me :-). Thank u very much.

pradeepyogesh
Автор

Dude, you are awesome, I have an exam tomorrow and this thing is just blowing my brain. BTW, Centipede song is awesome.
Thanks!

memoocv
Автор

You really deserve a lot more views and subscribers! Most design patterns are very hard for me to understand - not how they are created, but for what kind of problems they can be used - and you are explaining these things really easily using simple examples. Very nice! Please go on with that great work! Suscribed.

youpwnt
Автор

Hey Derek first of, thanks for your videos!
The only really disturbing sequence is your UML diagram. You declare SongComponent as an interface and implement it as an abstract class, which is "FINE". But in the UML Song doesnt extend or implement SongComponent. Which personally made it hard for me to understand in the first place, but after seeing your implementation not accordingly to your uml pattern and with additional help from wikipedia, I finally got it.

keep up the good work, it has been years since this video was made anyway :D

pierredahmani