Sequence of messages in a communication diagram Appear to the left of a message name Indicate the order in which the message is passed Process in numerical order from least to greatest
100 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1414 | Lượt tải: 0
Some operations may not have return types yet Remaining return types will be added as design and implementation proceed Identifying and modeling operation parameters Examine what data the operation requires to perform its assigned task Additional parameters may be added later on
88 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1436 | Lượt tải: 0
Activity Diagrams Focus on system behavior Model an object’s workflow during program execution Model the actions the object will perform and in what order UML representation Action state ( rectangle with its left and right sides replaced by arcs curving outwards) Action order ( arrow with a stick arrowhead) Initial state (solid circle) Fina...
95 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1167 | Lượt tải: 0
Identifying attributes Look for descriptive words and phrases in the requirements document Create attributes and assign them to classes Each attribute is given an attribute type Some attributes may have an initial value Some classes may end up without any attributes Additional attributes may be added later on as the design and implementation ...
86 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1311 | Lượt tải: 0
UML class diagrams Solid diamonds attached to association lines indicate a composition relationship Hollow diamonds indicate aggregation – a weaker form of composition
78 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1168 | Lượt tải: 0
Model system behavior Use case diagrams Model interactions between user and a system State machine diagrams Model the ways in which an object changes state Activity diagrams Models an object’s activity during program execution Communication diagrams (collaboration diagrams) Models the interactions among objects Emphasize what interaction...
99 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1291 | Lượt tải: 0
Software generally viewed as a product You buy a software package from a software vendor, then install that software on your computer and run it as needed Upgrade process cumbersome and expensive Software as a service (SAAS) Software runs on servers elsewhere on the Internet When server is updated, all clients worldwide see the new capabilitie...
60 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1336 | Lượt tải: 0
Bước 4: Xử lý sự kiện tính giá bán khi Click chuột vào button “Tính giá bán” Double click chuột lên button “Tính giá bán” sẽ chuyển sang chế độ code như sau:
18 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1255 | Lượt tải: 0
Lớp Point: biểu diễn điểm trên màn hình Lớp Dimension: biểu diễn kích thước về chiều rộng và chiều cao của một đối tượng Lớp Rectangle: biểu diễn hình chữ nhật Lớp Polygon: biểu diễn đa giác
25 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1127 | Lượt tải: 0
Java không có kiểu dữ liệu con trỏ như trong C. o Java có một trình dọn dẹp hệ thống sẽ dọn dẹp vùng nhớ cấp phát cho các đối tượng trước khi hủy một đối tượng. o Phương thức finalize() là một phương thức đặc biệt được cài đặt sẵn cho các lớp. Trình dọn dẹp hệ thống sẽ gọi phương thức này trước khi hủy một đối tượng
60 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1484 | Lượt tải: 0