{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

04_dev275_s03 - Module 3 Concepts of Object Orientation IBM...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Module 3 Concepts of Object Orientation IBM Software Group ® Essentials of Visual Modeling with UML 2.0 Module 3: Concepts of Object Orientation Topics What Is an Object? ............................................................................................... 3-4 Basic Principles of Object Orientation ................................................................. 3-10 What Is a Class? .................................................................................................. 3-20 The Relationship Between Classes and Objects ................................................... 3-23 What Is a Package? ............................................................................................. 3-35 © Copyright IBM Corp. 2004 3 - 1 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Image of page 1

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

View Full Document Right Arrow Icon
Essentials of Visual Modeling with UML 2.0 Objectives 2 Objectives Describe abstraction, encapsulation, modularity, and hierarchy. Describe the physical structure of a class. Describe the relationship between a class and an object. Define polymorphism and generalization. 3 - 2 © Copyright IBM Corp. 2004 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Image of page 2
Module 3 - Concepts of Object Orientation Where Are We? 3 Where Are We? What is an object? Four principles of OO What is a class? Polymorphism and generalization Organizing model elements © Copyright IBM Corp. 2004 3 - 3 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Image of page 3

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

View Full Document Right Arrow Icon
Essentials of Visual Modeling with UML 2.0 What Is an Object? 4 Informally, an object represents an entity, either physical, conceptual, or software. Physical entity Conceptual entity Software entity Truck Chemical Process Linked List What Is an Object? Objects allow the software developer to represent real-world concepts in their software design. These real-world concepts can represent a physical entity such as a person, truck, or space shuttle. Objects can be concepts like a chemical process or algorithms. Object can even represent software entities like a linked list. 3 - 4 © Copyright IBM Corp. 2004 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Image of page 4
Module 3 - Concepts of Object Orientation A More Formal Definition 5 A More Formal Definition An object is an entity with a well-defined boundary and identity that encapsulates state and behavior. State is represented by attributes and relationships. Behavior is represented by operations, methods, and state machines. Object Operations Attributes An object is an entity that has a well-defined boundary. That is, the purpose of the object should be clear. An object has two key components: attributes and operations. Attributes and relationships represent an object’s state. Operations represent the behavior of the object. Object behavior and state are discussed in the next few slides. © Copyright IBM Corp. 2004 3 - 5 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Image of page 5

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

View Full Document Right Arrow Icon
Essentials of Visual Modeling with UML 2.0 An Object Has State 6 An Object Has State State is a condition or situation during the life of an object, which satisfies some condition, performs some activity, or waits for some event.
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ 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