04-03-UML-class-notes

04-03-UML-class-notes - The OO Solution The OO model...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CSE 435: Software Engineering B. Cheng The OO Solution • The OO model closely resembles the problem domain – Base your model on the objects in the problem domain • Iteratively refine the high-level model until you have an implementation – Attempt to avoid big conceptual jumps during the development process CSE 435: Software Engineering B. Cheng J. Q. Public VISA 123 4567 887766 998 J. Q. Public Drivers License State of Michigan A-123456 03-12-63 Objects Person class J. Q. Public VISA 123 4567 887766 998 J. Q. Public Drivers License State of Michigan A-123456 03-12-63 Attributes name age height weight Operations move change-job Attributes height width id-number Operations issue change Person objects Card objects Card class abstracts to Attributes and Operations
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 CSE 435: Software Engineering B. Cheng Characteristics of Objects • Identity – Discrete and distinguishable entities • Classification – Abstract entities with the same structure (attributes) and behavior (operations) into classes • Polymorphism – The same operation may behave differently on different classes • Inheritance – Sharing of attributes and operations based on a hierarchical relationship CSE 435: Software Engineering B. Cheng The Class Diagrams CSE 435: Software Engineering B. Cheng Objects • Something that makes sense in the application context (application domain) – J.Q. Public – Joe’s Homework Assignment 1 – J. Q. Public’s drivers license • All objects have identity and are distinguishable • NOT objects – Person – Drivers license
Background image of page 2
3 CSE 435: Software Engineering B. Cheng Classes • Describes a group of objects with similar properties (attributes), common behavior (operations), common relationships to other classes, and common semantics • Person • J. Q. Public • Joe Smith • D. Q. Public – Card • Credit card • Drivers license • Teller card CSE 435: Software Engineering B. Cheng Class with attributes Objects with values person ID: integer name: String age: integer Person Objects have an identity Do not explicitly list object identifiers SSN OK!
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 10

04-03-UML-class-notes - The OO Solution The OO model...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online