Association vs Aggregation vs Composition: OOPS did you really know that?

Ғылым және технология

Association vs Aggregation vs Composition, one of the easy Object Oriented Programming concepts.
Association: has-a relationship between A & B without no ownership and no life-cycle control
Aggregation: has-a relationship between A & B with ownership and but no life-cycle control
Composition: has-a relationship between A & B with ownership and life-cycle control
Wait! Do you really know that? Or are you still confused?
This video is the small but hard efforts towards putting my knowledge in as simple words as possible.
Video content:
0:00 Welcome Note
0:30 Association - Understand the rules that must be followed
2:22 Association - Industry based example
3:37 Association - The code
4:15 Aggregation - Understand the rules that must be followed
6:14 Aggregation - Industry based example
7:05 Aggregation - The code
7:35 Composition - Understand the rules that must be followed
9:55 Composition - Industry based example
10:55 Composition - The code
11:38 Question for you!
Follow me:
LinkedIn: www.linkedin.com/in/sagarwagh...
Instagram: / optimusgrowth

Пікірлер: 10

  • @nabhoyar
    @nabhoyar2 жыл бұрын

    Simple and best explanation. I can totally related these concepts in real world now. Content has power. Thanks for not adding any background music or any extra fancy items to make it attractive. Simplicity always sound more powerful.

  • @mrsawantpravin
    @mrsawantpravin3 жыл бұрын

    Clear explanation ever seen. Thanks.

  • @OptimusGrowth

    @OptimusGrowth

    3 жыл бұрын

    Glad it was helpful! Keep watching!!!

  • @siddapure
    @siddapure3 жыл бұрын

    Great .. . simple to understand..best thing is NO BACKGROUND MUSIC

  • @OptimusGrowth

    @OptimusGrowth

    3 жыл бұрын

    Yeah suggestions are always welcomed! We should grow together and not alone! Keep watching the videos and I am sure you will enjoy the upcoming videos too! Feel free to suggest topics!

  • @pankajbhatia3479
    @pankajbhatia34792 жыл бұрын

    Nice n clear explanation

  • @raghupathidhara9767
    @raghupathidhara97672 жыл бұрын

    Excellent teaching. Please make more design pattern videos for us. Thank you soo much

  • @prisinha
    @prisinha2 жыл бұрын

    11:33 summary of Association Aggregation and Composition

  • @farzamshahid1085
    @farzamshahid10853 жыл бұрын

    Hi, hope you are fine. Can u make a program of Factory and adapter design pattern Having interface of SmartTv , some SmartTv interface methods are void turnOn, turnOff, volumeUp, volumeDown with explanation by Uml class diagram.

  • @prisinha
    @prisinha2 жыл бұрын

    9:09 Composition vs Aggregation

Келесі