11.OOAD

In contrast to conceptual classes in the Domain Model, design classes in the DCDs show definitions for software classes rather than real-world concepts. For example, if the message makeLineItem is sent to an instance of class Sale, then class Sale must define a makeLineItem method Therefore, the find method is not part of the Productspecification class; rather, it is part of the multiobjects interface. Consequently, it is incorrect to add find as a method to the Productspecification class. Method names: Language dependent syntax The basic UML format for methods: methodName(parameterList)

文档评论(0)

1亿VIP精品文档

相关文档