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

  Рет қаралды 126,701

Concept && Coding - by Shrayansh

Concept && Coding - by Shrayansh

2 жыл бұрын

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

Пікірлер: 268
@swarajshelavale4830
@swarajshelavale4830 8 күн бұрын
Best Explanation ever... You simplified 1 design pattern in just 15mins..Worth it Content!!
@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 10 ай бұрын
@@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 9 ай бұрын
@@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
@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
@abhishekpattnaik8531
@abhishekpattnaik8531 Жыл бұрын
Great explanation with simple example. Thanks Shrayansh.
@noobCoder26
@noobCoder26 Жыл бұрын
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 Жыл бұрын
thank you, yes let's keep practising.
@nigyban-theallrounder9016
@nigyban-theallrounder9016 4 ай бұрын
Did you make a comeback
@anuragshukla4260
@anuragshukla4260 2 ай бұрын
😂😂​@@nigyban-theallrounder9016
@Rahulverma-zt3sx
@Rahulverma-zt3sx 2 ай бұрын
bhai comeback hua?
@Sachin-je7ue
@Sachin-je7ue Ай бұрын
bhai comeback hua ya nhi ?
@AKASHSONI21
@AKASHSONI21 Жыл бұрын
Thanks for this. Your way of explaining the concepts is very explanatory
@siddharthtripathy3964
@siddharthtripathy3964 Ай бұрын
Kya gazab channel hai ye. love his explanation.
@ugempireninjaaaaaahatori6755
@ugempireninjaaaaaahatori6755 Ай бұрын
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
@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 👍
@garvitsingh2593
@garvitsingh2593 Ай бұрын
this guy deserves a lot of respect please continue it ...a legend
@ConceptandCoding
@ConceptandCoding Ай бұрын
thanks
@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 :)
@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.
@mannusharma4620
@mannusharma4620 Ай бұрын
Just day 2 in your playlist and seriously brother hats off!!! Great work....
@connectarunkumar
@connectarunkumar 29 күн бұрын
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.
@neha6000
@neha6000 2 жыл бұрын
Very nice explanation thanks
@user-og7de8ih4f
@user-og7de8ih4f Жыл бұрын
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 10 ай бұрын
Exactly
@nabajyotimajumdar4511
@nabajyotimajumdar4511 3 ай бұрын
Splendid video!
@mukulkopulwar
@mukulkopulwar Жыл бұрын
Great Explanation... Thanks for Sharing 🙂
@ConceptandCoding
@ConceptandCoding Жыл бұрын
thank you
@shubhamagarwal1434
@shubhamagarwal1434 Ай бұрын
Very well explained...awsome!!!
@jinendrajain7672
@jinendrajain7672 Жыл бұрын
Awesome Content, I am sure it gonna teach Young Devs alot.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@Sandywf
@Sandywf 5 ай бұрын
nice explanation ... please make a video on UML ,class and sequence diagram
@abhaytiwari1615
@abhaytiwari1615 Жыл бұрын
Awesome video. Thanks for uploading.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
thank Abhay
@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.
@AKASHSONI21
@AKASHSONI21 Жыл бұрын
Thanks for this. Your way of explaining the concepts is very well and helpful.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Glad it was helpful!
@harshinredzone
@harshinredzone Жыл бұрын
Thanks for sharing knowledge, Shrayansh.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks 🙏
@X_y_zaid
@X_y_zaid Ай бұрын
Such good explanation bro 🙌🏻
@MrBaaz-do9ny
@MrBaaz-do9ny Жыл бұрын
aap bhagwan ho... I have seen almost 5 videos on strategy pattern but this is best till now..
@MrBaaz-do9ny
@MrBaaz-do9ny Жыл бұрын
Also continue in hindi always... its your USP... loved it
@ConceptandCoding
@ConceptandCoding Жыл бұрын
thank you
@mayursoni346
@mayursoni346 Жыл бұрын
Good content - really appreciate your efforts in explaining the concepts. Best wishes,.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks 🙏
@shubhamrajput37
@shubhamrajput37 6 ай бұрын
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 6 ай бұрын
:)
@sameerchoudhary8590
@sameerchoudhary8590 4 ай бұрын
What a splendid explanation. Thank you
@ConceptandCoding
@ConceptandCoding 4 ай бұрын
tha
@RaviBiradar080
@RaviBiradar080 2 жыл бұрын
Very well explained with understandable examples👍
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
thanks Ravi
@nikkm2000
@nikkm2000 6 ай бұрын
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.
@ShivamSingh-mt4nr
@ShivamSingh-mt4nr 21 күн бұрын
Thnanks bhaiya
@neelanshgulati2643
@neelanshgulati2643 Жыл бұрын
Great content... Keep making more videos.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
thank you
@arungoyal3795
@arungoyal3795 Жыл бұрын
This is my first comment on youtube , the way explain is amazing....
@ConceptandCoding
@ConceptandCoding Жыл бұрын
thanks a lot
@arifurlimon4060
@arifurlimon4060 Жыл бұрын
Very clear and detailed explanation. Please make more videos in LLD
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you, pls check my LLD playlist Arifur.
@hariedits1674
@hariedits1674 2 жыл бұрын
Loved the way explained. Immediately subscribed your channel
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
thank you
@iamkdblue
@iamkdblue Жыл бұрын
Jabr jst explanation bro 🎉 - aag laga diya
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@AshishGusain17
@AshishGusain17 6 ай бұрын
Thanks for the video..nice explaination
@ConceptandCoding
@ConceptandCoding 6 ай бұрын
thanks
@prajwalmahaveera9346
@prajwalmahaveera9346 5 ай бұрын
This explanation was clear and damn helpful. Thanks!
@ConceptandCoding
@ConceptandCoding 5 ай бұрын
thank you
@kartikeyrana3736
@kartikeyrana3736 Жыл бұрын
Gold mine! Gold mine! Gold Mine! this playlist is a GOLD MINE !!!
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@naveentmyug
@naveentmyug 7 ай бұрын
very thanks sir
@royalfitness6860
@royalfitness6860 2 ай бұрын
Great explanation but I would suggest to keep interface name start with I so it will be clear to understand more 😊
@ConceptandCoding
@ConceptandCoding 2 ай бұрын
noted
@ankushladani496
@ankushladani496 Жыл бұрын
Thank you Bhaiya for this awesome explaination....
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@rahulgunkar6308
@rahulgunkar6308 Жыл бұрын
How come this channel has less subscriber?... You deserve more subs bro.. Nicely explained.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Totally relying on you guys:)
@ambersinghrok
@ambersinghrok Жыл бұрын
bhai bs continue rakhna har cheez...bhut bhu help hojaegi
@ConceptandCoding
@ConceptandCoding Жыл бұрын
sure Amber
@AmanSharma-ht5zq
@AmanSharma-ht5zq Жыл бұрын
Thanks
@nitishprasadkushwaha
@nitishprasadkushwaha 11 ай бұрын
useful
@kochu7484
@kochu7484 9 ай бұрын
Hi, @conceptandcoding where is the git repo link for the same?
@paritoshdadhich2954
@paritoshdadhich2954 9 ай бұрын
Thank you for the view. Got to know about the when to use and how to use
@ConceptandCoding
@ConceptandCoding 9 ай бұрын
Thanks
@sanketneema286
@sanketneema286 Жыл бұрын
Thank you so much shrayansh.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Welcome
@babhijit
@babhijit 10 ай бұрын
If my application has different payment gateway options, can I use this pattern to implement the working of each payment type or simple factory pattern will suffice ?
@kashiffiroze5066
@kashiffiroze5066 2 ай бұрын
Same can be achieved using @Qualifier annotation of springboot?
@theritesh973
@theritesh973 Жыл бұрын
Awesome explanation😍
@ConceptandCoding
@ConceptandCoding Жыл бұрын
thank you
@ashishmiglani02
@ashishmiglani02 10 ай бұрын
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 ?
@rajdave7357
@rajdave7357 Жыл бұрын
❤❤❤❤❤ maza aagaya guru ji
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@shreyashachoudhary480
@shreyashachoudhary480 Жыл бұрын
Super Clear!
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Glad it helped!
@namanjain2488
@namanjain2488 9 ай бұрын
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
@DemystifyFrontend
@DemystifyFrontend 10 ай бұрын
Great explanation
@ConceptandCoding
@ConceptandCoding 10 ай бұрын
Thanks
@sarthakbhatia7639
@sarthakbhatia7639 8 ай бұрын
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?
@auroshisray9140
@auroshisray9140 Жыл бұрын
Thank you for this tutorial.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@paragroy5359
@paragroy5359 Жыл бұрын
Great video
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@chandankumar-su7ng
@chandankumar-su7ng Жыл бұрын
thanks
@Suraj-tz3oq
@Suraj-tz3oq 6 ай бұрын
But what if I have a Vehicle class which is interface like or a class which shouldn't be instantiated
@padmajamahapatra5546
@padmajamahapatra5546 Жыл бұрын
Very well explained . Also can you please add other design patterns to this list ..
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Hi, pld do check my LLD playlist, i have added many patterns and will add more soon
@Mohd_Rashid_Siddiqui
@Mohd_Rashid_Siddiqui Жыл бұрын
well explained.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@elaserph
@elaserph Жыл бұрын
Cool!!!!
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@anketpatel2312
@anketpatel2312 Жыл бұрын
Easily understandable.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@shubhamnigam14
@shubhamnigam14 Жыл бұрын
very good explanation ❤
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Glad you liked it
@user-mg9vx5fo4g
@user-mg9vx5fo4g Жыл бұрын
Nice explanation
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@bhanusharma7066
@bhanusharma7066 17 күн бұрын
maza aagya
@vineet4991
@vineet4991 17 күн бұрын
This is basically Dependency Inversion Principle of SOLID?
@ajaypolicepatil
@ajaypolicepatil Жыл бұрын
Hi Shreyansh, According to Liskov Substitution Principle, Don't we need to implement drive method in Passenger vehicle class as well ?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
If passenger Child Class has the same behaviour as Parent class, then it can use Parent class method. If it has to add some additional benefits, then it can override the method
@ankitkumar-qn3zy
@ankitkumar-qn3zy 4 ай бұрын
Is it not similar to dependency injection? Here we are replacing a method with the interface.
@homestaysandcafes
@homestaysandcafes Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
We are not instantiating the object , but just declaring a variable of that type. And then assigning the value.
@ShivamVerma02
@ShivamVerma02 Жыл бұрын
Hey, how does construction injection different from dependency inversion (part of SOLID ), that you explained erailer using Macbook example ?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Hi Shivam, Construction injection is the the way of setting the member variable. Dependency Inversion is the design Principle which say class should only depends on high level abstraction class
@snehilsinha4689
@snehilsinha4689 Жыл бұрын
There are two basic ways of injecting dependencies (we should do this to follow the D - Dependency Inversion principal): 1. Constructor Injection (simplest one) - Where we initialise the member variable through the constructor itself. 2. Field Injection - We Inject directly into the field variables (done using Dagger/Hilt Library in Android Dev). So constructor injection is just a way to implement the Dependency Inversion Principle.
@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.
@chiragrajani1606
@chiragrajani1606 Жыл бұрын
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
@AmarjeetKumar-to9ub
@AmarjeetKumar-to9ub Жыл бұрын
clear :)
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@PRANAVMAPPOLI
@PRANAVMAPPOLI 11 ай бұрын
Anyone implemented this in javscript? how we can do the interface thing in js since it doesnt have one.
@aksharbrahm4618
@aksharbrahm4618 15 күн бұрын
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..
@JavaLeetcodeDSA
@JavaLeetcodeDSA 28 күн бұрын
i have joined as a member but is not able to get github link for lld videos, how can I access it
@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 🙏
@chethan4519
@chethan4519 5 ай бұрын
How is drive strategy different from bridge design pattern? We are basically breaking the hierarchy such that we do not have to reuse the code for each possibility rather have it as two different hierarchies, such that they scale better. Is there anything significant which I'm missing?
@ConceptandCoding
@ConceptandCoding 5 ай бұрын
while both the Bridge and Strategy patterns involve breaking down hierarchies, the Bridge pattern separates abstraction from implementation, allowing them to vary independently, while the Strategy pattern encapsulates a family of algorithms, making them interchangeable. The key difference lies in their intent: Bridge focuses on separating abstraction and implementation, whereas Strategy focuses on encapsulating algorithms.
@patel5532
@patel5532 6 ай бұрын
Do we need to have children at the same lever or can we use Strategy pattern between children of different level?
@anshulgoel1940
@anshulgoel1940 6 ай бұрын
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.
@hossainurrahaman
@hossainurrahaman Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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.
@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😄😀
@runtime379
@runtime379 Жыл бұрын
OP content
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thank you
@ijazhaider6072
@ijazhaider6072 Ай бұрын
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?
@preetiirrothi744
@preetiirrothi744 Жыл бұрын
Thanks!
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Welcome!
@ConceptandCoding
@ConceptandCoding Жыл бұрын
And thank you for super thanks
@shrutiiyyer2783
@shrutiiyyer2783 6 ай бұрын
any questions available on this strategy to practice?
@your_name96
@your_name96 Жыл бұрын
Sir can you tell the topics in core java I need to cover before starting this playlist since I am coming from C++ background and want to learn real life advanced oops in java
@ConceptandCoding
@ConceptandCoding Жыл бұрын
C++ is good for learning LLD as its Object oriented language only.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
but if you want to learn java, then till thread topic comes in Core java
@your_name96
@your_name96 Жыл бұрын
Okay thank you sir,I asked for java as majority companies prefer having java experience
@Mmmmmkoogfssdvbhvggg
@Mmmmmkoogfssdvbhvggg 7 ай бұрын
Why are we not creating an interface for Vehicle?
@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 9 ай бұрын
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 9 ай бұрын
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.
@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
@AmanSharma-vb5jl
@AmanSharma-vb5jl Жыл бұрын
Love u 3000 bro
@ConceptandCoding
@ConceptandCoding Жыл бұрын
thank you
@karankaira
@karankaira 11 ай бұрын
if base class has many functions then it is violatiing S of SOLID principles ? am i correct
@ConceptandCoding
@ConceptandCoding 11 ай бұрын
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.
@rajaryan7566
@rajaryan7566 Жыл бұрын
Hello bhaiya 🙏, I need one advice, is it okay to use Python for LLD in an interview? do you think it gives us a setback if we use python?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
No impact buddy, it's an OOPs language, it can be used.
@abhinavkumar7730
@abhinavkumar7730 4 ай бұрын
Where can i find the github repo for reference?
Strategy Pattern - Design Patterns (ep 1)
35:11
Christopher Okhravi
Рет қаралды 1,4 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 19 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 6 МЛН
What is the Strategy Pattern? (Software Design Patterns)
13:18
Be A Better Dev
Рет қаралды 54 М.
5. Factory Pattern Vs Abstract Factory Pattern Explanation, Low Level System Design interview
12:19
Strategy Design Pattern
11:32
Derek Banas
Рет қаралды 746 М.
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН