1.

What does Liskov substitution principle specify?

A. parent class can be substituted by child class
B. child class can be substituted by parent class
C. parent class cannot be substituted by child class
D. No classes can be replaced by each other
Answer» B. child class can be substituted by parent class


Discussion

No Comment Found