1 / 8

Week 13: Wrap-up Refining Class Diagram and Implementation

Week 13: Wrap-up Refining Class Diagram and Implementation. MSIS 670: UML Models. Refining the Class Diagram. From Activity Diagram and Sequence diagram, add the classes needed. Identify more attributes (instance variables) and methods needed.

rivka
Download Presentation

Week 13: Wrap-up Refining Class Diagram and Implementation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Week 13: Wrap-upRefining Class Diagram and Implementation MSIS 670: UML Models

  2. Refining the Class Diagram • From Activity Diagram and Sequence diagram, add the classes needed. • Identify more attributes (instance variables) and methods needed. • Modify relationships: e.g., an application class uses a data type, “has a” GUI, etc. • Visibility: • instance variables = private or protected, • methods = public or private

  3. Creating Random Access Files Figure 1

  4. Implementation • a Skelton Java code for classes will be created.

  5. A Skeleton Code • Declare public class ClassName • Attributes be its instance variables • Class diagram relationships for object references • Declare methods from third compartment

  6. Step 1: declare class Step 2: define instance variables Step 3: reference to objects Step 4: define methods Figure 2: Example of application skeleton code

  7. Figure 3: Example of GUI skeleton code

  8. Figure 4: Example of file skeleton code

More Related