Explore how inheritance may go wrong and how to carefully address the associated issues using design principles especially with Liskov Substitution Principle (LSP). Inheritance helps us to follow the object-oriented principles, such as code reuse and polymorphism. However, there are some scenarios where inheritance may go wrong and that need…