I read a summary which always use the definition “principle of substitution” when it talk about inheritance. But It doesn’t explain the meaning of this principle.
What is this principle?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You probably know it, just not by this name.
http://en.wikipedia.org/wiki/Liskov_substitution_principle
It just says “If S is a T, then references to T can be changed to references to S.”