martes, 25 de octubre de 2022

SOLID principles

SOLID principles

 

Single Responsability Principle

bla bla
 
 blabla
 
blabla
  Responsability of change, source of change accord to different domains,  for example CFO, COO, CTO
 

 
Many ways to separate the inference. using concrete classes. by multiple inheritance ( not allowed in java) but could use interfaces.  using facade ...
 



Open/Close Principle

 
bla bla
 

Example 2

 
Adding a new operation class, forces Calculator Class to be modified.

 
With the Refactor, adding a new operation class the Calculator Class is not modified.



 

Liskov Principle

 
blabla




Interface Segregation Principle


bla bla
 


 

Dependency Inversion Principle

bla bla





eot