---
title: "Comment by Carlos Andrés Sierra Betancur on \"Liskov Substitution Principle Isn’t Complex. Just Give It a Try\" | Hashnode"
description: "Thanks for the article. One quick question though: isn’t the example in “Covariance of Return Types” violating the “Countervariance of Method Arguments”? The su"
url: "https://hashnode.com/posts/liskov-substitution-principle-isnt-complex-just-give-it-a-try/63b5141b7b3bb7a58e4b094a/comment/63c80175afd2f07b22630688"
---

[Discussion](https://hashnode.com/posts/liskov-substitution-principle-isnt-complex-just-give-it-a-try/63b5141b7b3bb7a58e4b094a)

Comment [Liskov Substitution Principle Isn’t Complex. Just Give It a Try](https://hashnode.com/posts/liskov-substitution-principle-isnt-complex-just-give-it-a-try/63b5141b7b3bb7a58e4b094a)

[Carlos Andrés Sierra Betancur](https://hashnode.com/@carlossierra311)

[Jan 18, 2023](https://hashnode.com/posts/liskov-substitution-principle-isnt-complex-just-give-it-a-try/63b5141b7b3bb7a58e4b094a/comment/63c80175afd2f07b22630688)

Thanks for the article. One quick question though: isn’t the example in “Covariance of Return Types” violating the “Countervariance of Method Arguments”? The subtype can only receive strings, but the super type can also receive numbers.

[Mohamed Mayallo](https://hashnode.com/@mayallo)

[Jan 22, 2023](https://hashnode.com/posts/liskov-substitution-principle-isnt-complex-just-give-it-a-try/63b5141b7b3bb7a58e4b094a/comment/63c80175afd2f07b22630688#reply-63cd5500cc7a92b9f77dd014)

Thanks a lot, Carlos. You are right, the example was a little confusing. I have just edited it. Thanks for your valuable feedback.
