Posts

Showing posts with the label SOLID

Solid Principles

 Solid Principle : S - Single Responsibility O- Open / Closed Principle L - Liskov Substitution I - Interface Segregation  D - Dependency Inversion  S - Single Responsibility Principle            A class should have only one  reason to change, meaning a class should have only one job.     Example :  For software development we have multiple people doing different thing like designer do designing, tester do testing and developer do development. O - Open / Closed Principle          Open for extension / Closed for modification      Example: All smart phones have app stores and these app stores let you extend the base  functionality of the phone. Via the App Store, you can extend the phones capabilities to allow you to manage your todo list, play video games. It's not as that Apple Google and Microsoft put the OS source code up on Github and invite you to dive in and start buil...