I had a hard time understanding this before watching this video. Now I understand. Thank you!!
@CodeDecode4 жыл бұрын
M glad 👍
@thakrenikhil2 жыл бұрын
@@CodeDecode i agreed with Landon, now its very clear for me as well
@sohilusmani82765 ай бұрын
Mam composition ka ek example run karake dikha dijiye
@kids-plays2 жыл бұрын
Example wise, if composition is there, you can declare part-of variable like engine as private final so that it has to be initialize to exist the car or initialize Car instance.
@wi8shad0w2 жыл бұрын
sorry to be pedantic . The Code shown is just wrong. In aggregation, the parent class is not responsible for its creation and will have its own life cycle . The code shown here for aggregation exhibits composition. for Aggregation if its unclear how to do it , The other objects are injected during construction and its also rightly called as dependency injection and only by that design aggregation can be acheived.
@amulyal55614 жыл бұрын
Pretty Straight forward and catchy explanation:) Thank you
@CodeDecode4 жыл бұрын
Thanks 👍
@charan_753 жыл бұрын
Simple and to the point, thanks for the explanation.
@CodeDecode3 жыл бұрын
Thanks Charan 👍🙂
@prateeksahu63323 жыл бұрын
Really practical and crystal clear explanation
@CodeDecode3 жыл бұрын
Thanks .......
@juanestebanparraparra63022 жыл бұрын
Neatly explained!
@CodeDecode2 жыл бұрын
Thanks 🙂👍
@stephanesonkeng45694 жыл бұрын
Hello thanks for the video, looking at the code only, how can you differentiate between aggregation and composition?
@marcosdiasdev3 жыл бұрын
In composition the "parts" objects are created and deleted by their "owner". For example, you can have Order and OrderItem. In Order constructor you can instantiate your OrderItems. If the Order is destroyed then you must have a method for destroying OrderItems too.
@thegeographicalterm59742 ай бұрын
Thank you very much this clarify my problems.
@CodeDecodeАй бұрын
You are welcome!
@chetankhandave Жыл бұрын
Once again, very nice video, but I have one question. If there is part of relation between car and engine, so engine is tightly coupled with car. Does it mean engine's life cycle is completely depending on car? If engine's life cycle is depends on car, then there should not be getter method for engine, because if we provide getter method for engine then engine will be available outside class car also, then how can engine's life cycle depends on class Car. Please clear my doubt.
@seenuiglesias40355 жыл бұрын
Simple and Best explanation..... I expect more from you about Core Java not only that do the videos on microservices, webservices also
@CodeDecode5 жыл бұрын
Don't worry I have a plan for J2EE, Spring, Hibernate, JPA, micro services, rest full web services, and even react and machine learning too. But it will take some time as i am a developer in an MNC. I need some time to shoot these videos but i have a plan to do so in near future.
@usamaansari79035 жыл бұрын
@@CodeDecode yes mam do that but first clear all core java concepts all small small things to big big things and plzz plzzz also make a playlist of SWING AWT javafx and applets separates plzzz and then only switch to J2EE u r explanation is wonderful and very clear so that's y I am expecting from u tysm☺
@SunilKumar-on1iq4 жыл бұрын
👏👏👏👏👏👏
@sudiptanandi20113 ай бұрын
An association is known as Aggregation when one object uses another object. Is it Correct?
@ironone44383 ай бұрын
Not exactly, because you can have a composite association where an object of a class uses another object from another class
@ZeeshankhanKhan-b1r2 ай бұрын
Watching before one day from exame
@CodeDecode2 ай бұрын
All the very best
@saundaryasrivastava86388 ай бұрын
thanks alot mam for revising these concepts
@CodeDecode8 ай бұрын
🙂🙂
@navneettripathi21105 жыл бұрын
Comparable and comparator Tutorial please...with live example
@usamaansari79035 жыл бұрын
@@CodeDecode no mam u go step by step take u r time but make a video step by step after oops concepts u can make arrays videos and them collection
@CodeDecode5 жыл бұрын
Don't worry guys i will cover most of the basics of Java including oops, arrays n comparable and comparator everything in this month only
@dheebanm32073 жыл бұрын
Very useful mam,thank you
@CodeDecode3 жыл бұрын
Thanks 👍👍
@shravanthsrinivas87004 ай бұрын
I followed most of your videos, but somehow missed this one, and this was exactly asked today for me in Oracle, couldn't answer it properly 😢
@CodeDecode4 ай бұрын
No worries Shravanth few questions unanswered are completely fine in interviews. Target answering 80 percent and that will be enough for clearing the round🙂👍 all the very best mAn. U will do great. Keep learning keep shining 🌟🌟
@shravanthsrinivas87004 ай бұрын
@@CodeDecode thanks a lot ❤️
@RAMCHARAN-by2oq2 жыл бұрын
mam pls explain with programetically, bcz interviewer need this. thank you
@CodeDecode2 жыл бұрын
Sure Ram 👍👍
@rudraninoothi6092 жыл бұрын
Nice explanation mam
@CodeDecode2 жыл бұрын
Thanks 🙂🙂🙂
@dimashtef70773 жыл бұрын
I've understood the topic even in spite of your Hindu english, great explanation
@CodeDecode3 жыл бұрын
Thanks 😊
@sohilusmani82765 ай бұрын
Mam composition ka ek example run karake dikha dijiye
@rickqin86244 жыл бұрын
Great work!
@CodeDecode4 жыл бұрын
Thanks 👍
@RAJ-wx7cr4 жыл бұрын
Awesome explanation mam
@CodeDecode4 жыл бұрын
Thanks:)
@Mewari_Rana5 ай бұрын
samaj hi nhi aaya kuch
@srimanjivlogs38032 жыл бұрын
worthy ❤️
@CodeDecode2 жыл бұрын
Thanks
@umadevi111123 жыл бұрын
Thanks alot ❤️
@CodeDecode3 жыл бұрын
You are welcome Uma........
@pankajchandel10003 жыл бұрын
Where is the code?
@rafidhassanrisun53413 жыл бұрын
balle balle
@CodeDecode3 жыл бұрын
🙂👍
@zarintasnimela1383 жыл бұрын
Shava shava
@pavankumar-vg8ev Жыл бұрын
Association(HAS-A) Aggregation And Composition in Java madam pls give me code link
@tanishkavaswani33603 жыл бұрын
thankyou :)
@CodeDecode3 жыл бұрын
🙂🙂👍👍
@jaserq3 жыл бұрын
the relationsihip between me and my car is composition !!!!
@CodeDecode3 жыл бұрын
🤣
@rubbish92319 ай бұрын
🤨🧐🧐 but here engine can exist without car.
@CodeDecode9 ай бұрын
Yeah engine you can get in market in real world analogy
@Querty430988 ай бұрын
But what if it is not used in any car so it's useless that's why both needed each other to be complete
@dotnetdevyt3 ай бұрын
But not useful
@games4fun584 Жыл бұрын
but this concept mostly use in android programing
@Harlogs7 ай бұрын
Areyyy yarrr nothing nothing nothing………Your video is nothing but full of nothing😂