lundi 27 mai 2019

What does Liskov Substitution Principle preserve?

As I've read the substitution of objects of a concrete type by instances of a subclass of that concrete type must preserve a program's correctness, a program's invariants.

I'd like to know what exactly is meant by correctness and invariants of a program?

Aucun commentaire:

Enregistrer un commentaire