Which design principle suggests that objects should be open for extension but closed for modification?
- Abstraction
- Inheritance
- Open-Closed Principle
- Polymorphism
The 'Open-Closed Principle' is a fundamental design principle in object-oriented programming. It suggests that software entities (such as classes) should be open for extension (new functionality can be added) but closed for modification (existing code remains unchanged). This encourages modularity and maintainability.
Loading...
Related Quiz
- In ITSM, which process focuses primarily on restoring services to normal operation as quickly as possible?
- A research team is building a chatbot and needs it to understand and respond to user queries contextually over a conversation. Which NLP mechanism allows the model to remember and utilize previous interactions in a conversation?
- High-Performance Computing (HPC) is commonly associated with which type of processing?
- In agile project management, what term describes a fixed-length iteration during which a potentially shippable product increment is created?
- An organization is assessing its IT risks and identifies a potential threat from an outdated software component. However, the business impact of this threat is deemed to be very low. What might be a suitable course of action?