Hi Basant, Thanks for this great content. The Lisklov Substitution Principle and Interface Segregation Principle sounds similar. In the examples, the social media example is also segregating the forcible dependencies.
these two principles may seem similar at first glance, they actually address different concerns: LSP ensures that subtypes can be used in place of their base types without altering the correctness of the program. In other words, it ensures that inheritance is used correctly, and that derived classes don't break the behavior expected from the base class. ISP ensures that interfaces are designed in a way that is specific and relevant to the needs of the clients that use them. It focuses on avoiding bloated and unnecessary interfaces by splitting them into smaller, more focused ones that can be used independently. To summarize, LSP is concerned with inheritance and polymorphism, while ISP is concerned with interfaces and their usage. While they are both important principles for designing maintainable and extensible software, they address different issues and should be applied in different contexts.
Thanks for sharing. Great explanation. Here in Open Close Principle - Open for extension but closed for modification for new features, gives clear meaning than just mentioning closed for modification (because there is always a chance to modify the written code)
You are the one who makes me understand the LSP. However, I got confused with LSP and ISP. According to LSP, Parent should be completely substitutable with the child, so we create a smaller interface and now child can replace parent. With ISP after segregating interfaces, the child can replace a parent. Can u please comment on this please?
Great explanation - I really do like how one ends up with much cleaner code and less tight coupling by following the principles, especially the dependency inversion principle!
would be great if two seperate videos can be done in a dedicated, sytematic and structured way - one for Java from basics covering all content and 1 - Advanced Java including Java 8 concepts from basic till end. It can be a very length content but it's okay
Thanks for making this video... ... I was into multiple videos to learn solid design principles.. . But ur video is direct and very easy to grasp the concept
I appreciate your effort, i follow your videos to upgrade my knowledge bank, but The Lisklov Substitution Principle example is Interface Segregation Principle example.
Thank you very much for sharing this video. This is the best version to understand SOLID with examples so far after I looked at a few different ones. Thank you!!
Hi Basant, Gave fantastic explanation. you are my best in Java Concepts session. Your all videos are AWESOME. thanks for your great and beautiful sessions. In My career growth , you are also a Part of it. Thanks once again.
Thanks for providing a clear explanation. All the 4 principles except single responsibility principle, somehow we are using interface to perform the principles. So we need to use an interface to achieve all these. Correct me if I am wrong
Thanks for the your view. you explained well but i didn't find the difference between Liskov Substitution principle and Interface segregation Principle.
Just one word, thanks a lot sir🙂 you really explain things so well. Pls help with oauth2 integration in Microservices built using springboot from scratch sir pls pls
Have seen the video, its so informative. Thanks sir. Is it DS and algo to be perfect to get into prod based? Most of us use frameworks which already built and ready to use. Im thinking to switch, but getting hold back with fear of ds as im not that great at it.
1:30 Single-responsibility principle
5:10 Open-closed principle
10:45 Liskov substitution principle
19:45 Interface segregation principle
24:52 Dependency inversion principle
Java Techie is a great guy. His explanations are always on point.
This man understands everything in java from basics to advanced, Thank you JavaTEchie
Hi Basant, Thanks for this great content. The Lisklov Substitution Principle and Interface Segregation Principle sounds similar. In the examples, the social media example is also segregating the forcible dependencies.
yes i agree..!
@@girishahirrao5558 there should be some difference, may be basant missed to explain
Even I am thinking same liskov and interface segregation are same from example point of view...can you please explain sir
these two principles may seem similar at first glance, they actually address different concerns:
LSP ensures that subtypes can be used in place of their base types without altering the correctness of the program. In other words, it ensures that inheritance is used correctly, and that derived classes don't break the behavior expected from the base class.
ISP ensures that interfaces are designed in a way that is specific and relevant to the needs of the clients that use them. It focuses on avoiding bloated and unnecessary interfaces by splitting them into smaller, more focused ones that can be used independently.
To summarize, LSP is concerned with inheritance and polymorphism, while ISP is concerned with interfaces and their usage. While they are both important principles for designing maintainable and extensible software, they address different issues and should be applied in different contexts.
@@gowthamdasari6227 Thanks bro so much for the detailed explanation…
Moral of the tutorial is always use Interface.
😂😂😂
🤣🤣🤣
😄
With single method only😊
😂😂😂
Thanks for sharing. Great explanation.
Here in Open Close Principle - Open for extension but closed for modification for new features, gives clear meaning than just mentioning closed for modification (because there is always a chance to modify the written code)
The best explanation I found on SOLID with practical examples!!!
You are the one who makes me understand the LSP. However, I got confused with LSP and ISP. According to LSP, Parent should be completely substitutable with the child, so we create a smaller interface and now child can replace parent. With ISP after segregating interfaces, the child can replace a parent. Can u please comment on this please?
You are great explainer. Through this video, all doubts of Design princeples are gone.
tomorrow I have one interview and I'm glad that you released this video just in time...thank a lot:)
Good luck Anish for tomorrow interview 👍🏻
Great explanation with real time example (Problem and solution in single video).
Great explanation - I really do like how one ends up with much cleaner code and less tight coupling by following the principles, especially the dependency inversion principle!
Your explanation very very nice , and after saw your videos i got a clear confident. thank you so much !
Even a Layman can understand this topic as you have taken the payment related usescases which is heavily used by people from all sorts of life.
☺️👍🏻
would be great if two seperate videos can be done in a dedicated, sytematic and structured way - one for Java from basics covering all content and 1 - Advanced Java including Java 8 concepts from basic till end. It can be a very length content but it's okay
You make everything simple. ✨️ I am learning a lot from your videos. Thank you.
This is the best video, I found explaining SOLID principles. Thanks !
waiting from very long time now wait ends and got confiedence and knowledge on solid priniciples.Thank you so much sir
Great tutorial... Liskov and Interface segregation principles looks exactly same..
Thanks for making this video... ... I was into multiple videos to learn solid design principles.. . But ur video is direct and very easy to grasp the concept
@java Techic the 2,3 and 4 principles are looking identical?
Best Video on Solid Principle. The explanation with examples really helps to clear the doubts.
Thanks Raj 🙂
I appreciate your effort, i follow your videos to upgrade my knowledge bank, but The Lisklov Substitution Principle example is Interface Segregation Principle example.
It looks the same but the context is different i would suggest you check it again
Thank you very much for sharing this video. This is the best version to understand SOLID with examples so far after I looked at a few different ones. Thank you!!
Thanks buddy 😊
Very very essential concept in microservices. Thanks sir
What an explanation sir.!! Big thanks to you for explaining this confusing topic in that much simpler way.
Hi Basant, Gave fantastic explanation. you are my best in Java Concepts session. Your all videos are AWESOME. thanks for your great and beautiful sessions. In My career growth , you are also a Part of it. Thanks once again.
I am so glad to hear this keep learning brother 😊
Thanks for explaining everything with examples.
Thanks for providing a clear explanation. All the 4 principles except single responsibility principle, somehow we are using interface to perform the principles. So we need to use an interface to achieve all these. Correct me if I am wrong
Correct 💯
Thank you for your response
Very nice explanation...you made SOLID principles a cup of cake for us....thanks a lot...
One of the best tutorial on youtube 🔥
Thank you Sir!!!!!! It is best video for SOLID principle
Short and Precise. You made that look easy! Well done!!!!!!!!
One of the best content on solid
Amazing explaination of each concept
Thankyou sir 🙏🏽
Nicely explained with relevant examples
Thank you so much for the clear explanation Sir.
Really happy with this video that's why appreciating it twice. thanks.
i just found this video too late, but, its refreshing!
I was waiting from so long..finally it's here..Thank you so much for this video.. ❤❤
Nicely explained S.O.L.I.D principals through simple code example. 😀
Excellent explanation . Thank you very much for sharing your knowledge
Best video and recommended for all❤️
The video that i can watch and rewatch and feel excited about learning these principles. Thanks Bassant, it did help a lot bro.
Your explanations are just amazing ✨
Thanks for the your view. you explained well but i didn't find the difference between Liskov Substitution principle and Interface segregation Principle.
As I mentioned it looks same but the context is different
Thank you man! I'm preparing for my job application and this video is a big help 🙏🏻 Something college doesn't teach you
Your r great and easy explanation please continue java techie 👍👍👍👍👍👍👍👍👍👍👍
Just one word, thanks a lot sir🙂 you really explain things so well.
Pls help with oauth2 integration in Microservices built using springboot from scratch sir pls pls
Hello sreddy it's already there in my spring boot security playlist
@@Javatechie thanks sir. Will go through it. 🙂
Have seen the video, its so informative. Thanks sir. Is it DS and algo to be perfect to get into prod based?
Most of us use frameworks which already built and ready to use. Im thinking to switch, but getting hold back with fear of ds as im not that great at it.
Thank You Bro best real-time example to explain 🤢😎
Best explanation on youtube
A most wanted video... Thank you so much
Thanks for sharing this video with clear examples!
solid principle explanation at its best.
great nice example solid priciple
Great explnation sir. Thank you so much
Very nicely explained. Thank you so much sir...
Great explanation on Solid Principle. The explanation with examples really helps to clear the doubts.
Thanks buddy
You are too good man !
Thank you soo much for providing this awesome content ❣️🙌
Very well explained in an easy way.
Eagerly waiting for your videos as they are worth watching 💯🙏🏻
What an explanation it is!!!! Good Job.
Great Explanation on SOLID
Great Explanation, Thank you for making such content.😊
Awesome explanation 👏
Thank you Basant for wonderful explanation
@Java Techie: Excellent explanation..👏👏👏👏👏👏
again good explanation from you,thanks you so much
Thanks for this..The explanation was great
a very nice content delivered again by you Sir.. lots of love
Great explanation ... one of best tutorial
Thank you, this was amazing explanation.
Can you create a separate video for L Substitution Principle? Thanks
I'm waiting for this..from long time ago...
Thanks sir.🙂👍
I really like the examples that you provide
Thank you plz keep going
We all need you
Great work by Java Techie
Good explanation all points
Thanks
Thanks a lot for such a wonderful explained concept
Great Explanation, Thanks a lot sir
The video is really useful. Thanks.
your are genius Sir it helped alot.
Explained very clearly
Very nicely explained. Thank you
Super Explanation !!! Hats off to you !!
Fantastic Explaination
😊 Simplest explanations. Thanks.
Very useful concept ...keep going 👏🏻👏🏻👏🏻
Very good explanation.thanks
T
hank you so much for the SOLID principle
Hi Basant, thank you so much in explaining in detail
Thanks Nilesh.keep learning
Thank you sir..
Thanks for making the content free ppl like us can get all great content related to java at one place 👍👍
Thanks. Manoj
Nicely explained ..
Thank you 😀
Nicely explained. Thank you so much !
That was really good for me thanks a lot
Very helpful! Thanks for sharing!
i know it is going to be a great video the moment i first hear the accent
Thank you bro for good explanation 🙏. You are such a champ man.
Thanks buddy
This is brilliant sir! Thank you!!
Very well explained with great examples. Thank a lot for this video