Statistics
The Highest Post







Statistics
Count 94
Avg 21.00
Min 21
Max 21
Angualr Top questions

Details



Peter Agyekum What is Open/Closed Principle? Open/Closed Principle “Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.” Modules that follow the Open/Closed Principle include two key attributes. "Open for extension." It means that the module’s behavior can be extended. When the requirements of the application change, you can extend the module with new behaviors that adapt to those changes. "Closed for modification." The source code of such a module is inviolate when you extend the module's behavior. You shouldn't refactor and modify the existing code for the module until bugs are detected. The reason is the source code has already passed the unit testing, so changing it can affect other existing functionalities.
Related Topics