RUVIDEO
Поделитесь видео 🙏

Liskov Substitution Principle Tutorial with Java Coding Example for Beginners

Liskov Substitution principle is the third principle of SOLID principles. Liskov Substitution principle states that objects of a superclass should be replaceable with objects of its subclasses without breaking the application. The Liskov Substitution principle was introduced by Barbara Liskov in her conference keynote “Data abstraction” in 1987. It extends the Open/Closed principle and enables you to replace objects of a parent class with objects of a subclass without breaking the application.

This requires all subclasses to behave in the same way as the parent class. To achieve that, your subclasses need to follow these rules:
1. Don’t implement any stricter validation rules on input parameters than implemented by the parent class.
2. Apply at the least the same rules to all output parameters as applied by the parent class.

In simple words, what we want is to have the objects of our subclasses behaving the same way as the objects of our superclass. So, the next time by mistake if you create an object of the subclass instead of super class, you should still be fine considering LSP. An overridden method of a subclass needs to accept the same input parameter values as the method of the superclass. Similar rules apply to the return value of the method. The return value of a method of the subclass needs to comply with the same rules as the return value of the method of the superclass.

Remember If you decide to apply Liskov Substitution principle to your code, that means the behavior of your classes is more important for you than its structure.

** Use of Liskov Substitution Principle **
1. Use Liskov Substitution want to replace parent object with the child class object.
2. Use Liskov Substitution if you want to reuse code.
3. Use Liskov Substitution if you want reduce software maintenance effort.
4. Use Liskov Substitution principle when you want loose coupling between software components.

** Benefits of Open-Closed Principle **
1. Liskov Substitution principle gives us a loosely-coupled, flexible set of classes to handle changing requirements.
2. Liskov Substitution principle helps in Code Reusability.
3. Liskov Substitution principle makes software maintainable.
4. Liskov Substitution principle introduces reduced Coupling.

** Chapter Timestamps **
0:00 Welcome to Liskov Substitution Principle
1:15 Agenda of Liskov Substitution Principle Tutorial
2:21 Introduction to Liskov Substitution Principle
4:43 Real World Example of Liskov Substitution Principle
6:12 Java Code Example of Liskov Substitution Principle
12:27 Usage of Liskov Substitution Principle
13:05 Advantages of Liskov Substitution Principle
13:40 Summary of Liskov Substitution Principle
14:40 Next Video on Interface Segregation Principle

#solidprinciples #liskovsubstitution #liskovsubstitutionprinciple

** GIT Repository **
CodeOneDigest Solid Principles Example https://github.com/codeonedigest/solidprinciples

** CHECK OUT OUR OTHER VIDEOS **
Spring boot project setup: https://youtu.be/bsgA20eJKxs
Spring Boot Microservice with postgres database Project: https://youtu.be/iw4wO9gEb50
Prepare Docker file, Container and Build Image: https://youtu.be/g_pdTzjnuso
Deploy Docker Image AWS Elastic Container Service: https://youtu.be/ZlR5onuwZzw
Solid Principle Tutorial https://youtu.be/7d4ZrBfXweE

** CHECK OUR PLAYLISTS **
Java Design Pattern Complete Tutorial https://youtube.com/playlist?list=PL2NZAYdLkYvglL0xl-4tgBAribrcjeuNH
Spring Boot Complete Tutorial https://youtube.com/playlist?list=PL2NZAYdLkYvg_VlNmszrb-Um0wRx5yGDF
Docker Containers Complete Tutorial
https://youtube.com/playlist?list=PL2NZAYdLkYvhZQo2VTVCSug_zVjekNodi
Solid Principles and Object-Oriented Programming Concept and Design https://youtube.com/playlist?list=PL2NZAYdLkYvgB_35bYUnqP1p6v6P2Yb4-

** Acronyms **
OOP – Object Oriented Programming Languages
SRP – Single Responsibility Principle
OCP – Open Closed Principle
LSP – Liskov Substitution Principle
ISP – Interface Segregation Principle
DIP – Dependency Inversion Principle
COD – Code One Digest

** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.

Check out our channel here:
https://www.youtube.com/channel/UC9V0QYsWKz_OD2uooCtEtRg
Don’t forget to subscribe!

** OUR WEBSITE **
https://codeonedigest.wordpress.com/

** GET IN TOUCH **
Email us on [email protected]

FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Subscribe: https://bit.ly/3NeWQ8U
Youtube: https://www.youtube.com/channel/UC9V0QYsWKz_OD2uooCtEtRg
Twitter: https://twitter.com/codeonedigest
Facebook: https://www.facebook.com/codeonedigest
Instagram: https://www.instagram.com/codeonedigest/
Linkedin: https://www.linkedin.com/in/codeone-digest-10b418255/
Website: https://codeonedigest.wordpress.com/

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Liskov Substitution Principle Tutorial with Java Coding Example for Beginners», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.