SOLID principles by example: Interface segregation

This post continues the analisys of the SOLID principles and it’s about the Interface Segregration Principle (ISP). Definition The interface-segregation principle (ISP) states that no client should be forced to depend on methods it does not use. The bad example Here we examine an interface that violates ISP: This interface states that a smart device…… Continue reading SOLID principles by example: Interface segregation

SOLID principles by examples: introduction

SOLID is a common acronym in the software development world. It’s useful to remeber five best practices to design classes in a object oriented language. It means: InitialStands forConcept SRP Single Responsability Principle A class should have only a single responsability. OCP Open Closed Principle Software entities should be open for extension but closed for…… Continue reading SOLID principles by examples: introduction