lecture5 - UML: 1 CSE335Dr.CharlesB.Owen Motivation...

Info icon This 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
Image of page 1

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

View Full Document Right 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?
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
Image of page 3

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

View Full Document Right 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?
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
Image of page 5

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

View Full Document Right 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
Image of page 6
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 7 What we are doing Plans Implementation
Image of page 7

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

View Full Document Right 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
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
Image of page 9

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

View Full Document Right Arrow Icon
CSE 335 Dr. Charles B. Owen Object-Oriented Programming 10 Reasoning and Notes More compact then code.
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '10
  • OWEN
  • Grammatical person, Dr. Charles B. Owen, Charles B. Owen, B. Owen Object­Oriented, Owen Object­Oriented Programming, Dr. Charles B.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern