Vidyalelo
Java Programming · Q71

Java Autoboxing

Programming · Java Programming · question 71

Q71

What does Liskov substitution principle specify?

A.
parent class can be substituted by child class
Answer
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: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board