Тёмный

2. Strategy Design Pattern explanation | LLD System Design #1 | Design pattern explanation in Java 

Concept && Coding - by Shrayansh
Подписаться 130 тыс.
Просмотров 157 тыс.
50% 1

Hi, in this video we have covered #strategy #designPattern out of many design pattern which is asked in Low level system design interview.
➡️ Become a Member: / @conceptandcoding

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

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 297   
@KhushalSonawat
@KhushalSonawat 17 дней назад
I don't know if anyone else is able to appreciate it, but man the idea of interface and this design pattern is absolute genius. Another day when I'm surprised what all things humans have achieved
@tastaslim
@tastaslim Год назад
Thank you for this tutorial. Just to add, The fundamental of every design pattern is to separate out what changes over period of time from what remains constant. As you see in Strategy pattern, we are trying to separate out dependency of drive from the main class as much as possible by making various strategies to inject it dynamically based on client requirement so that in future if new requirement for drive comes, there will be minimal/no changes in existing code(Open closed Principle).
@niwanshumaheshwari4534
@niwanshumaheshwari4534 Год назад
Favour composition over inheritance. Separate what stays the same from what changes. As we are using a new operator, it's a program to an implementation not to an interface. We can use the factory pattern here. Right?
@farukhmahammad9374
@farukhmahammad9374 Год назад
@@niwanshumaheshwari4534 using new operator doesn't mean we are programming to an implementation ; it's about how you're using it in relation to abstraction and interfaces. correct me if I'm wrong.
@tastaslim
@tastaslim Год назад
@@niwanshumaheshwari4534 Also you client should be the one who should initialize the class. You can inject your classes using types in static type languages and using type hints in python
@swarajshelavale4830
@swarajshelavale4830 3 месяца назад
Best Explanation ever... You simplified 1 design pattern in just 15mins..Worth it Content!!
@travelnlearn
@travelnlearn 15 дней назад
Thank You for detailed explanation in a simple effective and efficient way,
@ugempireninjaaaaaahatori6755
@ugempireninjaaaaaahatori6755 4 месяца назад
litreally , amazing content , from monday there will be my interviews , if i will get selected than i will defenatly return to this video and comment over this .......amazing one
@garvitsingh2593
@garvitsingh2593 5 месяцев назад
this guy deserves a lot of respect please continue it ...a legend
@ConceptandCoding
@ConceptandCoding 5 месяцев назад
thanks
@devishiaggarwal5668
@devishiaggarwal5668 Месяц назад
@@ConceptandCoding which platform are you using for coding part?
@PrakharSrivastava-t3o
@PrakharSrivastava-t3o Месяц назад
Legit content! Probably one of the best and simplest explanations of a Design Pattern. I was literally stuck on an LLD of a Netflix like subscription service, this video helped me find the solution. Guess what? It's Strategy Pattern!
@noobCoder26
@noobCoder26 2 года назад
I got rejected in an interview because of the lack of knowledge of design pattern. Going to learn from you next time will make a stronger comeback . 💥💥
@ConceptandCoding
@ConceptandCoding 2 года назад
thank you, yes let's keep practising.
@nigyban-theallrounder9016
@nigyban-theallrounder9016 7 месяцев назад
Did you make a comeback
@anuragshukla4260
@anuragshukla4260 6 месяцев назад
😂😂​@@nigyban-theallrounder9016
@Rahulverma-zt3sx
@Rahulverma-zt3sx 6 месяцев назад
bhai comeback hua?
@Sachin-je7ue
@Sachin-je7ue 4 месяца назад
bhai comeback hua ya nhi ?
@connectarunkumar
@connectarunkumar 4 месяца назад
You are correct. My interview got scheduled for 3 hrs(F2F) but got finished in 15mins. I felt very bad at that moment. Many times I tried but was not able to catch concepts of design patterns. I always use to think in C with classes. Your Design pattern tutorial is helping me a lot to understand. Converting your code from java to C++ to and understanding the concepts of design patterns. Started learning now. Thanks for explanations.
@kalpeshsaubhri
@kalpeshsaubhri Год назад
Bhai the best thing I like about your video is breadth you cover and the language hindi. Please keep these 2 things intact
@deepanshukumar3943
@deepanshukumar3943 Год назад
That's what we call the way to teach the Patterns. Awesome way to teach with Amazing content. Hats off..
@ConceptandCoding
@ConceptandCoding Год назад
Thanks 👍
@mannusharma4620
@mannusharma4620 4 месяца назад
Just day 2 in your playlist and seriously brother hats off!!! Great work....
@unemployedcse3514
@unemployedcse3514 2 месяца назад
I always vome back to this channel for design patterns and system design ❤
@siddharthtripathy3964
@siddharthtripathy3964 4 месяца назад
Kya gazab channel hai ye. love his explanation.
@shubhamrajput37
@shubhamrajput37 9 месяцев назад
It took me more than an hour to understand this while going through the Head First Book for the same design principle. Should have gone through the video first. Now I am going to use this "strategy", in which I will refer to your video first and then will go through the book
@ConceptandCoding
@ConceptandCoding 9 месяцев назад
:)
@umangmalhotra1222
@umangmalhotra1222 Год назад
I have finally started going through your , LLD Playlist, and I will comment something on every video after watching. Not always need to be Praise or Learnings from the video.
@ConceptandCoding
@ConceptandCoding Год назад
Thanks Umang, really appreciate it.
@anuragparla4201
@anuragparla4201 Год назад
I wish I had this available during my last semester. Design patterns would have been a breeze. Looking forward for more content :)
@ConceptandCoding
@ConceptandCoding Год назад
Thank you. Pls also share it with your connections :)
@pranaypaul6361
@pranaypaul6361 2 месяца назад
Very good concept focussed way to explain such stuff.
@сойка-и8й
@сойка-и8й Год назад
In laymen terms, In Startegy Design pattern we create an interface and it's different implementation based on strategy !! And inject appropriate startegy in client class by creating constructor or any injection of your choice
@yyajupatel
@yyajupatel Год назад
Exactly
@AKASHSONI21
@AKASHSONI21 Год назад
Thanks for this. Your way of explaining the concepts is very well and helpful.
@ConceptandCoding
@ConceptandCoding Год назад
Glad it was helpful!
@MrBaaz-do9ny
@MrBaaz-do9ny 2 года назад
aap bhagwan ho... I have seen almost 5 videos on strategy pattern but this is best till now..
@MrBaaz-do9ny
@MrBaaz-do9ny 2 года назад
Also continue in hindi always... its your USP... loved it
@ConceptandCoding
@ConceptandCoding 2 года назад
thank you
@grrlgd3835
@grrlgd3835 3 месяца назад
it's really frustrating because I just know this would be good but only speak English. tried captions and translate but too confusing. and chance to redub some of these ? great tutorials
@adityarout1276
@adityarout1276 Год назад
If you are looking for C++ code : using namespace std; #include #include using namespace std; class drivestratergy{ public: virtual void drive()=0; }; class normalDrive : public drivestratergy{ public: void drive(){ cout
@nikhilmeena7258
@nikhilmeena7258 Год назад
nice
@danishsinghjamwal627
@danishsinghjamwal627 Год назад
Thanks
@RP-qv9sc
@RP-qv9sc Год назад
thank you so much bro
@nishaaa_maurya
@nishaaa_maurya Год назад
Thanks Bhai ❤
@nishaaa_maurya
@nishaaa_maurya Год назад
Bro, do you have code of Observer Design Pattern of this lecture.
@AKASHSONI21
@AKASHSONI21 Год назад
Thanks for this. Your way of explaining the concepts is very explanatory
@paritoshdadhich2954
@paritoshdadhich2954 Год назад
Thank you for the view. Got to know about the when to use and how to use
@ConceptandCoding
@ConceptandCoding Год назад
Thanks
@harshwardhanchougule3039
@harshwardhanchougule3039 2 месяца назад
Thank you very much for the detailed explanation !!
@kartikeyrana3736
@kartikeyrana3736 Год назад
Gold mine! Gold mine! Gold Mine! this playlist is a GOLD MINE !!!
@ConceptandCoding
@ConceptandCoding Год назад
Thank you
@jinendrajain7672
@jinendrajain7672 Год назад
Awesome Content, I am sure it gonna teach Young Devs alot.
@ConceptandCoding
@ConceptandCoding Год назад
Thanks
@Kkkk123Naidu-if2gq
@Kkkk123Naidu-if2gq 27 дней назад
Hey bro , you have an awesome knowledge and course agenda , it would have been better if you've xplained it in English instead in hindi. It's very hard to understand and concentrate🙂🥲. Appreciate your efforts
@royalfitness6860
@royalfitness6860 5 месяцев назад
Great explanation but I would suggest to keep interface name start with I so it will be clear to understand more 😊
@ConceptandCoding
@ConceptandCoding 5 месяцев назад
noted
@arungoyal3795
@arungoyal3795 2 года назад
This is my first comment on youtube , the way explain is amazing....
@ConceptandCoding
@ConceptandCoding 2 года назад
thanks a lot
@shubhamagarwal1434
@shubhamagarwal1434 4 месяца назад
Very well explained...awsome!!!
@prajwalmahaveera9346
@prajwalmahaveera9346 9 месяцев назад
This explanation was clear and damn helpful. Thanks!
@ConceptandCoding
@ConceptandCoding 9 месяцев назад
thank you
@arifurlimon4060
@arifurlimon4060 2 года назад
Very clear and detailed explanation. Please make more videos in LLD
@ConceptandCoding
@ConceptandCoding 2 года назад
Thank you, pls check my LLD playlist Arifur.
@abhishekpattnaik8531
@abhishekpattnaik8531 Год назад
Great explanation with simple example. Thanks Shrayansh.
@_kidrah
@_kidrah 2 месяца назад
Great explanation, one doubt - According to SOLID principles Vehicle should be an interface right?
@sameerchoudhary8590
@sameerchoudhary8590 8 месяцев назад
What a splendid explanation. Thank you
@ConceptandCoding
@ConceptandCoding 8 месяцев назад
tha
@rahulgunkar6308
@rahulgunkar6308 2 года назад
How come this channel has less subscriber?... You deserve more subs bro.. Nicely explained.
@ConceptandCoding
@ConceptandCoding 2 года назад
Totally relying on you guys:)
@mukulkopulwar
@mukulkopulwar 2 года назад
Great Explanation... Thanks for Sharing 🙂
@ConceptandCoding
@ConceptandCoding 2 года назад
thank you
@rohitvathumilli8176
@rohitvathumilli8176 3 месяца назад
1) Using a Drive Interface with Concrete Implementations 2) Using a Single Drive Class with Behavior Specified in the Constructor Which is better approach
@kashiffiroze5066
@kashiffiroze5066 5 месяцев назад
Same can be achieved using @Qualifier annotation of springboot?
@ankushladani496
@ankushladani496 Год назад
Thank you Bhaiya for this awesome explaination....
@ConceptandCoding
@ConceptandCoding Год назад
Thank you
@X_y_zaid
@X_y_zaid 4 месяца назад
Such good explanation bro 🙌🏻
@nishanthmekala1409
@nishanthmekala1409 Год назад
Hi Shreyansh, Your videos are awesome. But I would like to know the below things 1. which one we should start first hld or lld? 2. In what way we should learn hld and lld? 3. How to practice these and gain hands on experiene? 4. Is it necessary to take a course after watching your videos? 5. Any order, you would reccomment to follow? Please clear my doubts Shreyansh.
@chiragrajani12
@chiragrajani12 Год назад
Do let me know as well, I have the same doubt :/
@FusionArcs
@FusionArcs Год назад
You should always go ahead with the LLD first, even some companies don't have this round explicitly but then it assumed you should know these principles already. Then you go HLD. For both of them see videos on a lot of problem use cases. You will be able to grasp these concepts well
@nikkm2000
@nikkm2000 9 месяцев назад
wonderful explanation dear. Just one suggestion(pls correct me if I am wrong), I think we have to give different name like myDrive() instead of drive() in Vehicle class. It will implicitly differentiate method used inside DriverStartegy.
@CodeMode9313
@CodeMode9313 Месяц назад
jeher video paaji
@hossainurrahaman
@hossainurrahaman 2 года назад
I have a few queries, maybe it will sound childish but I will ask anyway. We know there are 3 types of design patterns. Creational, structural and behavioral. i) Do we need to use all of these three patterns to make a full end to end application? i) If not then Can a single type of pattern handle all of the basic scenarios (creation, responsibility assignment to object etc. iii) is there any pattern which helps more during the interview.
@ConceptandCoding
@ConceptandCoding 2 года назад
Hi Rahman, very good question. Let me try to elaborate: - Do we need to use all 3 types of patterns to make an end to end application. Answer is NO. Using Design pattern is not mandatory. You can build system without using any pattern and live with it if system is Readable, Scalable, Manageable etc. You dont need design pattern. Let say for solving one part of the system you need to use some pattern, you can use a pattern from any type not necessary to use pattern from all 3 types. - Single pattern for helping in Interview, thats a tough question, i would say that depend on what question you get in the interview, basics questions can be created through common design patterns like Factory,Structural. But for some specific questions like design logging system, design Notify system we need to know those patterns in advance or come up some clean design during interview itself.
@hossainurrahaman
@hossainurrahaman 2 года назад
@@ConceptandCoding thank you for clearing the doubts. So basically during the interview for any particular scenario, I need to start with a design pattern which will suit most with the basic requirements. And need to add any additional design pattern for any new type of requirements. Eg: If asked to create a parking lot system, and if the basic requirements are can have multiple types of cars Can have multiple floor Can have multiple entry exit I can start with something like an abstract factory or factory pattern. If by any chance we need to log these events, we can use singleton pattern. Correct me if I am wrong. Thank you once again for prompt reply.
@lal_1404
@lal_1404 2 месяца назад
Good explanation, thanks. Just one question, are you using ipad or apple laptop.?
@homestaysandcafes
@homestaysandcafes 2 года назад
Sir From my knowledge we cant create objects of interface. But what I am able to analyse from above example is that we can create a has-a relationship using object of interface but we have to define the functions of interface in the class where object is declare?......Do let me know whether I am correct or not? BTW you are creating some GOD level content❤ Please don't stop, I am ready to help you in every possible way.
@ConceptandCoding
@ConceptandCoding 2 года назад
let me check the video Hardik and then i will be able to clarify your doubts. But one thing i can tell is this is design pattern video, so pattern defined in this, and class and their relationship will be correct as its well documented.
@SageXperts
@SageXperts 2 года назад
We are not instantiating the object , but just declaring a variable of that type. And then assigning the value.
@ShivamSingh-mt4nr
@ShivamSingh-mt4nr 3 месяца назад
Thnanks bhaiya
@Sandywf
@Sandywf 8 месяцев назад
nice explanation ... please make a video on UML ,class and sequence diagram
@AshishGusain17
@AshishGusain17 9 месяцев назад
Thanks for the video..nice explaination
@ConceptandCoding
@ConceptandCoding 9 месяцев назад
thanks
@iamkdblue
@iamkdblue Год назад
Jabr jst explanation bro 🎉 - aag laga diya
@ConceptandCoding
@ConceptandCoding Год назад
Thank you
@RaviBiradar080
@RaviBiradar080 2 года назад
Very well explained with understandable examples👍
@ConceptandCoding
@ConceptandCoding 2 года назад
thanks Ravi
@abhaytiwari1615
@abhaytiwari1615 2 года назад
Awesome video. Thanks for uploading.
@ConceptandCoding
@ConceptandCoding 2 года назад
thank Abhay
@auroshisray9140
@auroshisray9140 Год назад
Thank you for this tutorial.
@ConceptandCoding
@ConceptandCoding Год назад
Thanks
@ambersinghrok
@ambersinghrok 2 года назад
bhai bs continue rakhna har cheez...bhut bhu help hojaegi
@ConceptandCoding
@ConceptandCoding 2 года назад
sure Amber
@neelanshgulati2643
@neelanshgulati2643 2 года назад
Great content... Keep making more videos.
@ConceptandCoding
@ConceptandCoding 2 года назад
thank you
@5590priyank
@5590priyank Месяц назад
If we prepare new objects in constructor, wouldn't it violate D of SOLID principle?
@mayursoni346
@mayursoni346 Год назад
Good content - really appreciate your efforts in explaining the concepts. Best wishes,.
@ConceptandCoding
@ConceptandCoding Год назад
Thanks 🙏
@aksharbrahm4618
@aksharbrahm4618 3 месяца назад
One concern, Please take a look the arrows in UML diagram while showing parent child relationship arrows are pointing to parent instead of child. I have verified that those should point to child could you please comment on that. Because earlier it was confusing for me..
@rajdave7357
@rajdave7357 Год назад
❤❤❤❤❤ maza aagaya guru ji
@ConceptandCoding
@ConceptandCoding Год назад
Thank you
@harshinredzone
@harshinredzone Год назад
Thanks for sharing knowledge, Shrayansh.
@ConceptandCoding
@ConceptandCoding Год назад
Thanks 🙏
@neha6000
@neha6000 2 года назад
Very nice explanation thanks
@ijazhaider6072
@ijazhaider6072 4 месяца назад
Brother, Normal Drive Strategy class would implement Drive Strategy that means it has-a relationship but in diagram it is-a relationship. Implements are always has-a and extends are is-a. Am i right or missing something?
@DemystifyFrontend
@DemystifyFrontend Год назад
Great explanation
@ConceptandCoding
@ConceptandCoding Год назад
Thanks
@nabajyotimajumdar4511
@nabajyotimajumdar4511 6 месяцев назад
Splendid video!
@geekydanish5990
@geekydanish5990 2 года назад
I am aware of the basics of design pattern and some common principle such (as SOLID, KISS, DRY, etc) as they come into use in writing better code in general but I want to know from an interview perspective how deep one need to go say in my case I have an experience of 1.2 years and going for an interview how low do I need to go and design when it comes to LLD, I was always skeptical about LLD to what extend can we go low, in short, does experience affects the quality of solution or is it just like DSA questions same for everyone. P.S I haven't experienced any such LLD questions so far so if you can clear things here would be really helpful And sorry long explanation 😅
@ConceptandCoding
@ConceptandCoding 2 года назад
Hi Danish, i can definitely tell you are good in coding and DSA. And regarding LLD, there is no Level (which you can go deep). Level might be there in HLD where you can go deeper n deeper on one part of the design, like DB design, next level is RDBMS or No SQL then next level is Master slave then next level is Partitioning then sharding etc. But for LLD, its all about how good is your understanding with Objects, from the given problem are you able to identify Actors (objects), then what all features(member variables) it should have and then function. And how these different object interact with each others / what would be their relationship. Thats what Design pattern will help and to identify when and where which design pattern need to apply, that comes with experience or practice. Sorry for the long answer 🙂
@geekydanish5990
@geekydanish5990 2 года назад
​@@ConceptandCoding Hey Thanks for those kind words, I hear you and it totally make sense specially "identify Actors" and finally relationship , will take those input and start learning/practicing accordingly 🙏
@kochu7484
@kochu7484 Год назад
Hi, @conceptandcoding where is the git repo link for the same?
@faheemuddinnaseem6942
@faheemuddinnaseem6942 13 дней назад
Can someOne tell me the arrow Notation between DriveStrategy interface and normal drive , special drive is correct ? As DriveStrategy is interface and normal drive is class so the relationship between them should be has a relationship and arrow should be like -------> . See at 7:25.
@ArunKumar-eo2uj
@ArunKumar-eo2uj Месяц назад
Hi..what exactly is the problem if child classes have different implementation of drive() method of the parent class.
@naveentmyug
@naveentmyug 10 месяцев назад
very thanks sir
@shreyashachoudhary480
@shreyashachoudhary480 Год назад
Super Clear!
@ConceptandCoding
@ConceptandCoding Год назад
Glad it helped!
@sanketneema286
@sanketneema286 Год назад
Thank you so much shrayansh.
@ConceptandCoding
@ConceptandCoding Год назад
Welcome
@DataMetricsSolutions
@DataMetricsSolutions 2 года назад
Loved the way explained. Immediately subscribed your channel
@ConceptandCoding
@ConceptandCoding 2 года назад
thank you
@eswarsai9333
@eswarsai9333 29 дней назад
Can you please make your videos in English on design patterns...
@ConceptandCoding
@ConceptandCoding 29 дней назад
i have remake all patterns in english too, pls check “All creational design patterns”, “All structural design patterns” and “All behavioral design patterns” in 1 video in the LLd playlist itself
@paragroy5359
@paragroy5359 Год назад
Great video
@ConceptandCoding
@ConceptandCoding Год назад
Thank you
@dhruvsinghal6451
@dhruvsinghal6451 3 месяца назад
is a parent class object always capable to be assigned to a child class object, like here drivestrategy is taking on both child objects
@Mohd_Rashid_Siddiqui
@Mohd_Rashid_Siddiqui Год назад
well explained.
@ConceptandCoding
@ConceptandCoding Год назад
Thanks
@theritesh973
@theritesh973 2 года назад
Awesome explanation😍
@ConceptandCoding
@ConceptandCoding 2 года назад
thank you
@padmajamahapatra5546
@padmajamahapatra5546 2 года назад
Very well explained . Also can you please add other design patterns to this list ..
@ConceptandCoding
@ConceptandCoding 2 года назад
Hi, pld do check my LLD playlist, i have added many patterns and will add more soon
@namanjain2488
@namanjain2488 Год назад
Note for my future reference 5:51 -> at the same level children are using same code , code is not reusable solution -> make the common part as interface type
@ArunKumar-eo2uj
@ArunKumar-eo2uj Месяц назад
but how exactly making common part as interface type is solving the problem
@namansaraswat9691
@namansaraswat9691 2 года назад
Good video for strategy design pattern, can you please make a video where you solve a complete lld problem and show usage of strategy design pattern in the solution. If there is any solution you created in lld design that has usage of strategy design please let me know.
@ConceptandCoding
@ConceptandCoding 2 года назад
Hi Naman, check Design Parking Lot LLD video, i have used strategy pattern there
@namansaraswat9691
@namansaraswat9691 2 года назад
@@ConceptandCoding thanks for reply I am just going through that video only😄😀
@kashishkukreja7582
@kashishkukreja7582 Год назад
Why don't we create Vehicle as an interface and then create 2 more interfaces SprecialCapabilitiesVehicle and NormalCapabilitiesVehicle which extends Vehicle and has default implementation for drive respectively? Now the PassengerCar implements NormalCapabilitiesVehicle and SportsCar and PassengerCar implements SpecialCapabilitiesVehicle.
@amlanroutray288
@amlanroutray288 Год назад
this is because, lets assume, later on another functionality like display() will be added and it would be same for sport cars and passenger car and not in off road car, then we can create similar strategy for display and inject them in vehicle constructor. Adding more interfaces will not be a good scalable option with increase in features.
@tanujarora4906
@tanujarora4906 Год назад
As you update and add new features, how many interfaces you will add and how many interfaces you will refactor? That is the reason we should not opt for this.
@ankitkumar-qn3zy
@ankitkumar-qn3zy 7 месяцев назад
Is it not similar to dependency injection? Here we are replacing a method with the interface.
@AmanSharma-ht5zq
@AmanSharma-ht5zq 2 года назад
Thanks
@codeerBro
@codeerBro Год назад
useful
@anketpatel2312
@anketpatel2312 Год назад
Easily understandable.
@ConceptandCoding
@ConceptandCoding Год назад
Thanks
@bhanusharma7066
@bhanusharma7066 3 месяца назад
maza aagya
@anookimmidisetty2939
@anookimmidisetty2939 Год назад
@Concept can you share the source code as well ? seems like in your gitlab, there is no code for Strategy design pattern one..
@ConceptandCoding
@ConceptandCoding Год назад
I haven't added that, will add it soon
@sarthakbhatia7639
@sarthakbhatia7639 11 месяцев назад
We are using strategic design pattern to share common logic in subclass. Why can't we create a util function instead of following strategic design pattern?
@ashishmiglani02
@ashishmiglani02 Год назад
Why can we not assign NormalDriveStrategy in the Vehicle class, any how if super constructor is called from child class it will be over writing with the drive strategy provided by the child class. This will be useful to have default drive strategy defined. Suggest issue with this approach ?
@vineet4991
@vineet4991 3 месяца назад
This is basically Dependency Inversion Principle of SOLID?
@navdeepkaushik218
@navdeepkaushik218 2 месяца назад
No both are different
@AkshaySharma-bg3oj
@AkshaySharma-bg3oj Год назад
isnt arrow you mentioned in starting for has a belongs to single direction association in uml diagrams. Am I missing something. Great content tho, learned a lot. Thanks
@ConceptandCoding
@ConceptandCoding Год назад
Hi Akshay, to make the UML and LLD easy to understand, i used these arrows for explaining is-a and has-a relationship. And in interview, at-least i haven't faced any issue bcoz of this arrows. But once you get the understanding better of classes, objects and relationship, then you can learn all UML arrows (which i found very hard to remember)
@Mmmmmkoogfssdvbhvggg
@Mmmmmkoogfssdvbhvggg 10 месяцев назад
Why are we not creating an interface for Vehicle?
@Suraj-tz3oq
@Suraj-tz3oq 10 месяцев назад
But what if I have a Vehicle class which is interface like or a class which shouldn't be instantiated
@anshulgoel1940
@anshulgoel1940 9 месяцев назад
When the child classes directly create the specific instances of Drive Strategy, aren't they violating the Dependency principle. ?
@vamsi4998
@vamsi4998 Год назад
Great explanation. Can you provide the git hub repo link for our reference
@ConceptandCoding
@ConceptandCoding Год назад
I have shared the gitlab link in my Channel home page only Vamsi.
@karankaira
@karankaira Год назад
if base class has many functions then it is violatiing S of SOLID principles ? am i correct
@ConceptandCoding
@ConceptandCoding Год назад
No, for everyone function we can not create a new class. Else we will create another problem called class explosion. We can keep related functions in one class.
@shubhamnigam14
@shubhamnigam14 Год назад
very good explanation ❤
@ConceptandCoding
@ConceptandCoding Год назад
Glad you liked it
Далее
Women’s Free Kicks + Men’s 😳🚀
00:20
Просмотров 12 млн
Мои РОДИТЕЛИ - БОТАНЫ !
31:36
Просмотров 644 тыс.
Strategy Pattern - Design Patterns (ep 1)
35:11
Просмотров 1,5 млн
Dependency Injection, The Best Pattern
13:16
Просмотров 836 тыс.
Observer Design Pattern in Java
14:34
Просмотров 172 тыс.