OOP and Design Patterns · Real-world situation · Beginner
Subclass breaks code that uses the parent
A teammate created a ReadOnlyRepository that extends Repository and throws an exception in save(). Code that accepts Repository now crashes. What is wrong?
2:00