Should a design class diagram show private operations? I guess that a design class diagram only has to show public methods and the most important private attributes. Am I wrong?
Thanks.
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.
Unless you are designing the implementation of the class as well, there’s no reason to include private members in the design diagram. Private members serve the purpose of being the implementation details of the class and generally the implementation does not matter as long as it adheres to the public contract.