Software Testing

Exercise Question, (7) Testing Object-Oriented Software

Explain the Liskov substitution principle (LSP).

Properties that hold an object of base class A must also hold for objects of subclass B
 
Any object of base class A must be. replaceable by objects of subclass B without violating the properties that hold for A.
 

Diskussion