Liskov substitution (LSP)
medium 55 minAn object of a subtype must be usable wherever the supertype is expected, with no surprise for the caller.
An object of a subtype must be usable wherever the supertype is expected, with no surprise for the caller.