Duration 1:00

Open Close Principle Tutorial with Example for Beginners and Software Developer

40 watched
0
1
Published 2 Mar 2023

Open-closed principle is the second principle of SOLID principles. Open-closed principle states that Software entities like classes, modules, functions, etc. should be open for extension, but closed for modification. In software development, the use of object-oriented design with solid principles is crucial. It helps to write flexible, scalable, and reusable code. It is recommended that the developers follow SOLID principles when writing a code. The main benefit of this approach is that an interface introduces an additional level of abstraction which enables loose coupling instead of tight coupling we experience with inheritance. The implementations of an interface are independent of each other and don’t need to share any code. Another way to achieve Open-Closed Principle is through compositional design patterns like we see in the Strategy design pattern. ** Benefits of Open-Closed Principle ** 1. Open-Closed principle allows multiple implementations of the same algorithm. 2. Open-Closed principle using interface removes tight coupling between parent and child classes. 3. Open-Closed principle allow to add new feature without modifying existing code. 4. Open-Closed principle introduce loose coupling between software components. ** Topics Covered ** 1. Introduction of Open-Closed Principle 2. Real world example of Open-Closed Principle 3. Java code implementation of Open-Closed Principle 4. Usage of Open-Closed Principle 5. Advantage of Open-Closed Principle 6. Summary of Open-Closed Principle 7. Next Video on Liskov Substitution Principle #solidprinciples #openclosed #openclosedprinciple ** GIT Repository ** CodeOneDigest Solid Principles Example https://github.com/codeonedigest/solidprinciples ** CHECK OUT OUR OTHER VIDEOS ** Spring boot project setup: /watch/sxKJe02AgsbAJ Spring Boot Microservice with postgres database Project: /watch/05bEg9Ow4wiwE Prepare Docker file, Container and Build Image: /watch/osunjzTdp_gdn Deploy Docker Image AWS Elastic Container Service: /watch/wzZwuno5RlZ5w Solid Principle Tutorial /watch/EewXfBrZ4d7ZX ** CHECK OUR PLAYLISTS ** Java Design Pattern Complete Tutorial /playlist/PL2NZAYdLkYvglL0xl-4tgBAribrcjeuNH Spring Boot Complete Tutorial /playlist/PL2NZAYdLkYvg_VlNmszrb-Um0wRx5yGDF Docker Containers Complete Tutorial /playlist/PL2NZAYdLkYvhZQo2VTVCSug_zVjekNodi Solid Principles and Object-Oriented Programming Concept and Design /playlist/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. Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge. Check out our channel here: /channel/UC9V0QYsWKz_OD2uooCtEtRg Don’t forget to subscribe! ** OUR WEBSITE ** https://codeonedigest.wordpress.com/ ** GET IN TOUCH ** Email us on codeonedigest@gmail.com 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: /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/ Reddit: https://www.reddit.com/user/codeonedigest Github: https://github.com/codeonedigest Website: https://codeonedigest.wordpress.com/ Tumblr: https://www.tumblr.com/codeonedigest Pinterest: https://in.pinterest.com/codeonedigest/

Category

Show more

Comments - 1