Composite Design Pattern Practical

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 73

  • @marklord7614
    @marklord7614 4 роки тому +3

    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!

  • @destinoo1792
    @destinoo1792 3 роки тому +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!

  • @myquoraismine2953
    @myquoraismine2953 5 років тому +1

    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.

  • @basaveshbr3925
    @basaveshbr3925 7 років тому +1

    you are simply great sir!!! i got inspired by the way you explain and makes it so simple. woww!!!

  • @ganeshnimbolkar869
    @ganeshnimbolkar869 5 років тому +1

    you made it very much simple with real life example ..
    Thanks a lot

  • @jackfrost8969
    @jackfrost8969 10 місяців тому

    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.

  • @vnm_8945
    @vnm_8945 6 років тому +2

    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!

  • @harishsahu1310
    @harishsahu1310 5 років тому +2

    Side video of yours, make it more engaging. Content is good and easy to understand as always.

  • @rajeshkohir5736
    @rajeshkohir5736 7 років тому +2

    Please post remaining design patterns i.e Observer,Decorator etc.Your teaching is really nice

  • @sn1p3r.
    @sn1p3r. 2 місяці тому

    Man is saving my semester!

  • @webchild9043
    @webchild9043 4 роки тому +1

    You can use CTRL+D to delete a line. By the way amazing vidoes

  • @dianal7610
    @dianal7610 7 років тому

    Best tutorial ever, thank you a lot, easy to understand even for beginners.

  • @ANITARAI28
    @ANITARAI28 6 років тому +1

    This video is very helpful for my exam. I would really appreciate if you give more practical example.

  • @drunkmadala
    @drunkmadala 2 роки тому

    This video really helped me to unravel this taunting topic. Thanks.

  • @StyleTrick
    @StyleTrick 7 років тому +1

    Thank you Navin for the great videos, you are an awesome teacher =)!

  • @Keyakina
    @Keyakina 7 років тому +3

    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?

  • @narvini_6533
    @narvini_6533 7 років тому +1

    Very well explained. Thank you very much!

  • @surbhigupta1671
    @surbhigupta1671 5 років тому

    This video is really good. I like the example you used.

  • @khalidben9940
    @khalidben9940 7 років тому +1

    amazing as usual. I enjoyed watching this video

  • @dinushachathuranga7657
    @dinushachathuranga7657 Рік тому

    great video. Thanks a lot❤❤

  • @SuyashNande
    @SuyashNande 7 років тому +9

    If you show the UML diagram for the implementation. it would be good and also much easier for you to explain.

  • @himanshupoddar1395
    @himanshupoddar1395 Рік тому +1

    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.

  • @SuyashNande
    @SuyashNande 7 років тому +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.

  • @kaushikmangaprasad4575
    @kaushikmangaprasad4575 7 років тому +1

    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?

  • @Nampjg
    @Nampjg 4 роки тому

    excellent tutorial naveen

  • @MrNyaa2
    @MrNyaa2 7 років тому

    You deserved better than 20 likes Sir

  • @vasunttfshimoga
    @vasunttfshimoga 7 років тому

    Good explanation and got on composite design pattern
    Thanks for the video :)

  • @Divv
    @Divv 7 років тому

    Very well explained. Good example also!

  • @catnip2906
    @catnip2906 Рік тому

    Thank you very much for your video.

  • @sword111119
    @sword111119 7 років тому

    Thank you for explaining what Derek Banas could not.

  • @ThePalashgupta
    @ThePalashgupta 6 років тому +3

    when you are planning to add tutorials for all other Design Patterns ?

  • @bipros7
    @bipros7 8 років тому

    Superb explanation sir....Can you pls tell me what's the role of composite pattern in it industry????Is it kinda database manipulation?

  • @BtechVP
    @BtechVP 4 роки тому

    Navin sir may I know what are the design patterns u have prepared videos

  • @aimforgameitalia3225
    @aimforgameitalia3225 3 роки тому

    you are the best!

  • @abdollahsobhy9743
    @abdollahsobhy9743 6 років тому

    Great explanation. Keep up man.

  • @weekendhoppers
    @weekendhoppers 3 роки тому

    This is beautiful 👌

  • @suryachinimilli7147
    @suryachinimilli7147 6 років тому

    masth cheppav annaa ,peru kuda bale fancy ga pettav , telsukuntunnaa

  • @veerababubonthu927
    @veerababubonthu927 5 років тому

    Good example with nice exp

  • @suzansharif4017
    @suzansharif4017 5 років тому

    Great explanation Thank you

  • @TheAshis20
    @TheAshis20 7 років тому +1

    very very nice example

  •  4 роки тому

    You're awesome. Thanks.

  • @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 4 місяці тому

    Thank you for the video

  • @shanijaiswal
    @shanijaiswal 4 роки тому

    Nice explaination sir

  • @sivakrishnat5471
    @sivakrishnat5471 3 роки тому

    Is composition same as composite design pattern?

  • @dhanalakshmi-zz2ry
    @dhanalakshmi-zz2ry 6 років тому +1

    can you please put more videos on design patterns

  • @mgtowindia9549
    @mgtowindia9549 7 років тому +15

    thank you sir... better than derek bannas

    • @anonymous7851
      @anonymous7851 6 років тому +1

      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 6 років тому

      i never understand derek bannas design pattern tutorials, this is so much better

    • @SercanSavranOfficial
      @SercanSavranOfficial 6 років тому +2

      I'm losing focus in his tutorials because of the emphasizing... He sounds like an auctioneer on a fast talking contest.

  • @nagendrapyma1539
    @nagendrapyma1539 4 роки тому

    soo useful vides keep it up

  • @yavdhesh
    @yavdhesh 5 років тому

    रेड्डी मामा, आप अच्छे हो।

  • @rockinrain1
    @rockinrain1 7 років тому +1

    Wow....thanks...:)

  • @afsarabenazir8558
    @afsarabenazir8558 6 років тому

    good explanation

  • @hinasheikh2162
    @hinasheikh2162 6 років тому

    waht is the alternative pattern of composite pattern

  • @tuanphuongtran9956
    @tuanphuongtran9956 7 років тому

    What font is used in your text editor?

  • @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

  • @kyrsid
    @kyrsid 6 років тому

    awesome!

  • @arielsp18
    @arielsp18 7 років тому

    How would you implement a method that returns the total value (sum cost of all components) of the computer?

    • @Keyakina
      @Keyakina 7 років тому

      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

  • @pandit-jee-bihar
    @pandit-jee-bihar 5 років тому

    How is it different from aggregation ?

  • @_-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.

  • @denismugane2765
    @denismugane2765 4 роки тому +1

    This confuses me with template,decorator and builder design pattern

  • @denisr.8248
    @denisr.8248 5 років тому

    its good video

  • @qatest1204
    @qatest1204 4 роки тому

    Hi Navin,
    Could you please add more tutorial for all design patterns.

  • @nabilandadamslaboratory3422
    @nabilandadamslaboratory3422 6 років тому

    anyone have the code in c++?

  • @jammulasagar5356
    @jammulasagar5356 4 роки тому

    love u

  • @thejask2765
    @thejask2765 4 роки тому

    You are alien

  • @chandrasekhar5858
    @chandrasekhar5858 3 роки тому

    👍👍👍👍👍👏👏👏👏👏👏🙏🙏🙏🙏🙏