Question: Which principle is applied in this statement A function should not be aware that it is using a sub class object in place of the
Which principle is applied in this statement "A function should not be aware that it is using a sub class object in place of the superclass object? (a) Open-Closed Principle(OCP) (b) Single Reponsibility Principle (c) Interface Segregation Principle(ISP) (d) Liskov Substitutuion Principle(LSP) Which is the ans?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
