© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Carlos Andrés Sierra Betancur
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
Self-taught Software Engineer
Thanks a lot, Carlos. You are right, the example was a little confusing. I have just edited it. Thanks for your valuable feedback.