Solid Principles
Solid Principles In general solid principles are divided into mainly 5 categories which specifies as : Single Responsibility Principle Open/Close Principle Liskow Substitution Principle Interface Segregation Principle Dependency Inversion Principle Single Responsibility Principle Each function should have separate classes and perform the processes in the specific classes. Every module or class should have responsibility over a single part of the functionality provided by the software and that responsibility should be entirely encapsulated by the class. A class should have only one reason to change. why is single responsibility principle is compatible? High Maintenance Testability Flexibility and Extensibility Parallel Development Loose Coupling - Each system is independent on the other. Classes become smaller and cleaner. Example: Before ...