SOLID principles

 SOLID principles:

  • S single responsibility principle object should be considered to have only one single function concept.
  • O opening and closing the principle that "the body of software should be open for extension, but closed for modification" concept.
  • L Richter substitution principle that "objects in the program should be able to be replaced by its subclasses without changing the premise of the program correctness" concept.
  • I think the interface segregation principle the concept of "more specific client interface is better than a broad-use interfaces," the.
  • D Dependency Inversion Principle think that a method should comply with the "dependent on the abstract rather than an instance" concept.

Guess you like

Origin www.cnblogs.com/imike/p/11360120.html