Тёмный

Composite Design Pattern Practical 

Telusko
Подписаться 2,4 млн
Просмотров 111 тыс.
50% 1

Recommended Book :
Head First Design Pattern : amzn.to/2pY5xbR
This video contains practical session.
Composite design pattern belongs to Structural design pattern which belongs to Design Patterns in java.
Composite design patten allows you to have a tree structure and ask each node in the tree structure to perform a task.
Trainer: Navin Reddy
Check out our website: www.telusko.com
Follow Telusko on Twitter: / navinreddy20
Follow on Facebook:
Telusko : / teluskolearnings
Navin Reddy : / navintelusko
Follow Navin Reddy on Instagram: / navinreddy20
Subscribe to our other channel:
Navin Reddy : / @navinreddy
Telusko Hindi :
/ @teluskohindi
Subscribe to the channel and learn Programming in easy way.
Java Tutorial for Beginners : goo.gl/p10QfB
Scala Tutorials for Java Developers : goo.gl/8H1aE5
C Tutorial Playlist : goo.gl/8v92pu
Android Tutorial for Beginners Playlist : goo.gl/MzlIUJ
XML Tutorial : goo.gl/Eo79do
Design Patterns in Java : goo.gl/Kd2MWE
Java Servlet : goo.gl/R5nHp8
Hibernate Tutorial :goo.gl/N5ONYg
Spring MVC Tutorial : goo.gl/9ubbG2
OpenShift Tutorial for Beginners : goo.gl/s58BQH
Spring Framework with Maven : goo.gl/MaEluO
Sql Tutorial for Beginners : goo.gl/x3PrTg
String Handling in Java : goo.gl/zUdPwa
Array in Java : goo.gl/uXTaUy
Socket Programming in Java : goo.gl/jlMEbg
Exception Handling in Java : goo.gl/N4NbAW
Regards,
Navin Reddy

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 72   
@marklord7614
@marklord7614 4 года назад
I was actually confused by the technical jargon that comes with the explanation of design patterns and this video cleared up the confusion. Years old, but still useful. Cheers!
@rajeshkohir5736
@rajeshkohir5736 7 лет назад
Please post remaining design patterns i.e Observer,Decorator etc.Your teaching is really nice
@vnm_8945
@vnm_8945 6 лет назад
I like a lot how you're teaching I'm subscribed now, I wish you had more videos about design patterns and algorithms and data structures. ty for your work!
@basaveshbr3925
@basaveshbr3925 7 лет назад
you are simply great sir!!! i got inspired by the way you explain and makes it so simple. woww!!!
@webchild9043
@webchild9043 3 года назад
You can use CTRL+D to delete a line. By the way amazing vidoes
@ANITARAI28
@ANITARAI28 6 лет назад
This video is very helpful for my exam. I would really appreciate if you give more practical example.
@kaushikmangaprasad4575
@kaushikmangaprasad4575 7 лет назад
Wouldn't it be better to pass in Leaf instances into the constructor or use a builder pattern to construct the Composites there by referencing them with Component instead of Composite?
@dianal7610
@dianal7610 7 лет назад
Best tutorial ever, thank you a lot, easy to understand even for beginners.
@StyleTrick
@StyleTrick 7 лет назад
Thank you Navin for the great videos, you are an awesome teacher =)!
@khalidben9940
@khalidben9940 7 лет назад
amazing as usual. I enjoyed watching this video
@bipros7
@bipros7 7 лет назад
Superb explanation sir....Can you pls tell me what's the role of composite pattern in it industry????Is it kinda database manipulation?
@suryachinimilli7147
@suryachinimilli7147 5 лет назад
masth cheppav annaa ,peru kuda bale fancy ga pettav , telsukuntunnaa
@atrantech11
@atrantech11 Год назад
At the beginning of these tutorials, we were told design patterns were created with two things in mind, "Composition over inheritance" and "Code for interface, not implementation." But here, we are coding to implementation, not interface. (With changing component to composite to use the addComponent() method. With this example, why are we not able to use the addComponent() method if we are using Component as the type, but instantiating a new Composite? And doesn't this go backwards on what is one of the rules for design patterns? Great work with the video and I understand the Composite design pattern through this, but these two hang ups are making me a bit confused. Hoping someone can clear this up for me. Thanks future person. :)
@vishaldindalkop294
@vishaldindalkop294 21 день назад
Thank you for the video
@sword111119
@sword111119 7 лет назад
Thank you for explaining what Derek Banas could not.
@MrNyaa2
@MrNyaa2 7 лет назад
You deserved better than 20 likes Sir
@Nampjg
@Nampjg 4 года назад
excellent tutorial naveen
@mgtowindia9549
@mgtowindia9549 6 лет назад
thank you sir... better than derek bannas
@anonymous7851
@anonymous7851 6 лет назад
think they supplement each other well. I find derek bannas usually a good source but definitely needed some help after his video on composite pattern
@bobonaqa
@bobonaqa 5 лет назад
i never understand derek bannas design pattern tutorials, this is so much better
@SercanSavranOfficial
@SercanSavranOfficial 5 лет назад
I'm losing focus in his tutorials because of the emphasizing... He sounds like an auctioneer on a fast talking contest.
@Keyakina
@Keyakina 6 лет назад
3 things: 1) Why does the constructor calls super(); You can't initialize a interface right? 2) What if a leaf has 2 composition , so that means it would be in 2 different compositions so the price would count double? 3)How would this look like in real life? I mean, thats a HUGE and main?
4 года назад
You're awesome. Thanks.
@weekendhoppers
@weekendhoppers 3 года назад
This is beautiful 👌
@yavdhesh
@yavdhesh 4 года назад
रेड्डी मामा, आप अच्छे हो।
@rockinrain1
@rockinrain1 7 лет назад
Wow....thanks...:)
@afsarabenazir8558
@afsarabenazir8558 6 лет назад
good explanation
@surajgoenka
@surajgoenka 4 года назад
What if I want to do subtotal of prices like Ram 1500 CPU 5000 Total Motherboard price 6500 HDD 3000 Total cabinet price 9500 Monitor 5000 Mouse 500 Keyboard 1000 Total peripheral device 6500 Total computer price 22500
@nagendrapyma1539
@nagendrapyma1539 4 года назад
soo useful vides keep it up
@_-6912
@_-6912 4 года назад
Hi Naveen, why dint you complete all the design patterns? Also, video qualities are good but not lucrative, see Joma videos for his video lucrative quality.
@arielsp18
@arielsp18 7 лет назад
How would you implement a method that returns the total value (sum cost of all components) of the computer?
@Keyakina
@Keyakina 6 лет назад
The computer is a composite. It implements the component interface so it must have a getPrice() method. This composite class contains an Array of his own composites or leafs, he iterates trough it ( with a forloop) and you can add a variable (local or global) to the composite, doing in every iteration TotalValue += c.getprice
@denisr.8248
@denisr.8248 5 лет назад
its good video
@himanshupoddar1395
@himanshupoddar1395 Год назад
None of the youtube tutorial provide example of what's the problem and how the same can be solved with composite design pattern. Everyone just starts with the pattern directly. Its really not useful for most of the beginners.
@jammulasagar5356
@jammulasagar5356 3 года назад
love u
@chandrasekhar5858
@chandrasekhar5858 2 года назад
👍👍👍👍👍👏👏👏👏👏👏🙏🙏🙏🙏🙏
@harishsahu1310
@harishsahu1310 5 лет назад
Side video of yours, make it more engaging. Content is good and easy to understand as always.
@ThePalashgupta
@ThePalashgupta 5 лет назад
when you are planning to add tutorials for all other Design Patterns ?
@SuyashNande
@SuyashNande 7 лет назад
If you show the UML diagram for the implementation. it would be good and also much easier for you to explain.
@destinoo1792
@destinoo1792 3 года назад
Was kinda confused at the start, but in the moment you started the declaration of the objects everything make sense and i could understand the design pattern. Thank Navin!
@denismugane2765
@denismugane2765 4 года назад
This confuses me with template,decorator and builder design pattern
@myquoraismine2953
@myquoraismine2953 5 лет назад
Better than Derek Banas, I came back heard after watching Banas composite design pattern tut, but as always real-world example nail it, u nailed it. Thanks much. Keep it up. Nice work. Didn't expect from thumbnail ,,😋. But u made ease.
@dhanalakshmi-zz2ry
@dhanalakshmi-zz2ry 6 лет назад
can you please put more videos on design patterns
@ganeshnimbolkar869
@ganeshnimbolkar869 5 лет назад
you made it very much simple with real life example .. Thanks a lot
@dinushachathuranga7657
@dinushachathuranga7657 Год назад
great video. Thanks a lot❤❤
@narvini_6533
@narvini_6533 7 лет назад
Very well explained. Thank you very much!
@catnip2906
@catnip2906 Год назад
Thank you very much for your video.
@SuyashNande
@SuyashNande 7 лет назад
I liked this video because it explained the concept well. But the way you deliver can be improved. Please try to speak slowly and clearly, in this way there should be less chances of error.
@anonymous7851
@anonymous7851 6 лет назад
Also maybe don't have the interface component be named so closely to composite because it was widly confusing at times.
@aimforgameitalia3225
@aimforgameitalia3225 2 года назад
you are the best!
@TheAshis20
@TheAshis20 7 лет назад
very very nice example
@thejask2765
@thejask2765 3 года назад
You are alien
@sivakrishnat5471
@sivakrishnat5471 3 года назад
Is composition same as composite design pattern?
@hinasheikh2162
@hinasheikh2162 6 лет назад
waht is the alternative pattern of composite pattern
@jackfrost8969
@jackfrost8969 6 месяцев назад
This was complicated at first but after writing the code by myself and analyzing it further on my own I was able to grasp it.
@Divv
@Divv 7 лет назад
Very well explained. Good example also!
@BtechVP
@BtechVP 4 года назад
Navin sir may I know what are the design patterns u have prepared videos
@pandit-jee-bihar
@pandit-jee-bihar 4 года назад
How is it different from aggregation ?
@surbhigupta1671
@surbhigupta1671 5 лет назад
This video is really good. I like the example you used.
@suzansharif4017
@suzansharif4017 5 лет назад
Great explanation Thank you
@tuanphuongtran9956
@tuanphuongtran9956 7 лет назад
What font is used in your text editor?
@veerababubonthu927
@veerababubonthu927 5 лет назад
Good example with nice exp
@shanijaiswal
@shanijaiswal 4 года назад
Nice explaination sir
@nabilandadamslaboratory3422
@nabilandadamslaboratory3422 5 лет назад
anyone have the code in c++?
@abdollahsobhy9743
@abdollahsobhy9743 6 лет назад
Great explanation. Keep up man.
@vasunttfshimoga
@vasunttfshimoga 7 лет назад
Good explanation and got on composite design pattern Thanks for the video :)
@kyrsid
@kyrsid 5 лет назад
awesome!
@drunkmadala
@drunkmadala 2 года назад
This video really helped me to unravel this taunting topic. Thanks.
@sanatandharma8837
@sanatandharma8837 2 года назад
lol
@qatest1204
@qatest1204 4 года назад
Hi Navin, Could you please add more tutorial for all design patterns.
@partyhardwithme
@partyhardwithme 6 лет назад
Very clear example, good thing you used an inferface instead of an abstract class full of "UnsupportedOperationException". Also, i liked that you didn't go through the recursive getPrice() example it really confuses people of understanding how the pattern really works couse the get lost in recurssion.
Далее
Prototype Design Pattern in Java
18:30
Просмотров 144 тыс.
Composite Design Pattern Theory
4:18
Просмотров 130 тыс.
11 ming dollarlik uzum
00:43
Просмотров 391 тыс.
Kenji's Sushi Shop Showdown - Brawl Stars Animation
01:55
Observer Design Pattern in Java
14:34
Просмотров 172 тыс.
Composite Pattern - Design Patterns (ep 14)
1:11:23
Просмотров 145 тыс.
5 Design Patterns Every Engineer Should Know
11:51
Просмотров 938 тыс.
Builder Design Pattern in Java
8:34
Просмотров 225 тыс.
8 Design Patterns EVERY Developer Should Know
9:47
Observer Pattern - Design Patterns (ep 2)
49:47
Просмотров 565 тыс.