Search posts, tags, users, and pages
Mohamed Mayallo
Self-taught Software Engineer
Introduction As we all know, software requirements always change, and we as developers need to make sure that these changes don’t break the existing code. For this reason, the SOLID principles were introduced in Object-Oriented design to ease this pr...
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.
Thanks a lot, Carlos. You are right, the example was a little confusing. I have just edited it. Thanks for your valuable feedback.
Adrián RC
Very good article!
I'm confused with "Strength Class Invariants" and "Weakens the precondition". With those examples it looks like a contradiction.
Thanks Adrián, If you mean the logical conditions, I have just edited it.
Thank you Mohamed Mayallo I learned a lot with your blog. Thank you.
Really, thank you Adrián RC. I am so pleased to know that. Actually, such valuable feedbacks encourage me a lot.
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.