Software Development, Java, Interview.
Principle (LSP): Subtypes must be substitutable for their base types without affecting the correctness of the program. It ensures that objects of a superclass can be replaced with objects of its subclasses without altering the correctness of the program. Violations of this principle can lead to