使用UML进行面向对象分析和设计.docVIP

  • 6
  • 0
  • 约2.47万字
  • 约 17页
  • 2017-06-07 发布于重庆
  • 举报
使用UML进行面向对象分析和设计

使用UML进行面向对象分析和设计 :一个Banking System的示例 作者:unknown 更新时间: 2005-03-13 Introduction Youre proficient in C++, Java or another OO language, youre designing class hierarchies, using inheritance, and manipulating complex pointer relationships to store the necessary links between your classes. Youve probably drawn blobs (representing classes in some way) on whiteboards, with connecting lines to indicate the relationships between classes (inheritance or other). Perhaps youre feeling the need for a more formal notation to express your designs - using something that is language independent, and that enables you to consider the important aspects of design leaving the detail for later. Alternatively, perhaps youre a Project Manager, looking to formalise the OO design process a little to make sure youre getting the most from your move to C++/Java or a similar language. In this paper, I take a look at the UML (Unified Modelling Language) notation for Object Oriented Analysis and Design - the emerging standard designed by Booch, Rumbaugh and Jacobson, each of whom previously had their own notations published independently. The starting point is Object Modelling, a technique that enables you to focus on class structure, inheritance, etc., whilst avoiding language specifics such as pointer dereferencing. Object Modelling In UML Figure 1 - Subset of UML Object Modelling Notation - A Summary Object Modelling is the central technique in UML. It is a language independent notation allowing the specification of classes, their data or attributes(private) and methods (public), inheritance, and other more general relationships between classes. The notation itself is fairly simple to grasp (see figure 1), however this hides the somewhat more subtle thought processes underlying a good model. The best way to understand the notation is to look at an example. The following Object Model shows a simple Banking System, containing classes for Head-Office, Branch, Accounts held at that B

文档评论(0)

1亿VIP精品文档

相关文档