Kizspy | Question: 7
(Choose 1 answer)
In the context of object-oriented programming, what does the Liskov Substitution principle state?
A. Objects of a superclass shall be replaceable with objects of a subclass without affecting the functionality.
B. A class should have only one reason to change.
C. Classes should be open for extension but closed for modification.
D. Subclasses should be able to be replaced by their superclass without issue.