Chapter 10: Problem 20
What two questions should you ask to determine a class's responsibilities?
Short Answer
Expert verified
Answer: To determine a class's responsibilities, we need to answer two fundamental questions:
1. What does this class represent? Identify the real-world entity or concept the class models, its attributes (properties), and behaviors (methods).
2. What are the relationships between this class and other classes? Analyze the associations, aggregations, and compositions that the class has with other classes in the application to understand its responsibilities within the overall structure of the object-oriented design.