At home we replace an old CFL bulb to a new LED bulb. Although we change the bulb, we don’t change the functionality. which SOLID principle does it satisfy?
Answers
Answered by
10
Answer:
Liskov substitution is the answer
Answered by
0
Answer:
Liskov Substitution principle. It satisfies Open Closed Principle from the SOLID principle.
Explanation:
Liskov Substitution principle: The functions that use pointers of reference to base classes must be able to use objects of derived classes without knowing it.
The principle defines that, "objects of a superclass shall be replaceable with objects of its subclasses without breaking the application"
The Liskov Substitution principle is an extension of the Open-Closed Principle from the SOLID principle.
#SPJ3
Similar questions