lecture5 - UMLBasicClassModeling UML:UnifiedModelingLanguage

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

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 1 UML  - Basic Class Modeling UML: Unified Modeling Language Standardized general-purpose modeling language  for software development
Background image of page 1

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

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 2 Motivation When I describe a  class  in class, do I write the code?
Background image of page 2
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 3 Motivation When I describe a  class  in  class, do I write the code? These are all  previous lecture  slides
Background image of page 3

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

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 4 Goal: To be able to reason about a design We’re talking design here,  not engineering,  not implementation.   You  design , then implement ! We need a way to convey the  designer’s intent . We need a way to view a complex  structure all at one time. Can you get this from  source code, even with a  zillion comments?
Background image of page 4
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 5 Source Code Claim:   Source code is not the best medium  for communication and comprehension Syntax! Language artifacts Lots of redundancy and detail  irrelevant for some program- understanding tasks Especially poor at depicting  relationships  among classes in  OO programs One Solution:   Abstract, visual representations. Like: UML To understand an object- oriented design, one must be  able to visualize these  relationships
Background image of page 5

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

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 6 Unified Modeling Language A standardized visual way to describe a software design Class Models Describes the structure of  objects and relationships in the  system. Object and class diagrams. State Models Describes the dynamic aspects  of objects and control in  the  system. Interaction Models Describes how objects  cooperate in a system. We’ll need all three. We’ll focus for now on Class Models
Background image of page 6
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 7 What we are doing Plans Implementation
Background image of page 7

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

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 8 Language Independence UML is language independent It works for any object-oriented programming language It does not use specific C++ or Java or whatever  terminology
Background image of page 8
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 9 Class Diagrams Class Name Attributes Operations Attribute Name Attribute Type Default Value Attributes are your data Operation are your functions and  procedures
Background image of page 9

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

View Full DocumentRight Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 10 Reasoning and Notes More compact then code. Can see many classes at a time.
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 44

lecture5 - UMLBasicClassModeling UML:UnifiedModelingLanguage

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

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