Introduction LSP focuses on the concept of inheritance, a fundamental building block in object-oriented programming (OOP). It ensures that a subclass (a more specific type) can be seamlessly substituted for its parent class (a more general type) with...
devdemystified.hashnode.dev4 min read
Dawid Świst
I believe you should consider improving the example in the 'Bad Example (Not Following)' chapter. The Java compilation problem is caused by a difference in the type of the variable and the constructor class.