AlgoMaster Logo

Exercise: Liskov Substitution Principle

Last Updated: May 18, 2026

High Priority
1 min read

Try implementing the below code exercises to reinforce your understanding. Your goal is to implement the classes below so that they produce the expected output.

Exercise 1: The Rectangle/Square Problem

Exercise 2: The Bird/Penguin Problem