What are the main and most important rules (pros and cons) I have to apply when I write a class that will be inherited by third party.
Thank you.
What are the main and most important rules (pros and cons) I have to
Share
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.
The basic rule is: Make Interfaces Easy to Use Correctly and Hard to Use Incorrectly. It’s from the 3rd edition of Scott Meyers’ excellent book Effective C++.
Here are a few more pretty good guidelines for class design.