Chapter 20 Object-Oriented Concepts and Principles - PowerPoint PPT Presentation

barid
chapter 20 object oriented concepts and principles n.
Skip this Video
Loading SlideShow in 5 Seconds..
Chapter 20 Object-Oriented Concepts and Principles PowerPoint Presentation
Download Presentation
Chapter 20 Object-Oriented Concepts and Principles

play fullscreen
1 / 12
Download Presentation
Chapter 20 Object-Oriented Concepts and Principles
156 Views
Download Presentation

Chapter 20 Object-Oriented Concepts and Principles

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Chapter 20Object-Oriented Conceptsand Principles

  2. The OO Process Model

  3. The OO Mindset objects problem domain

  4. Classes • object-oriented thinking begins with the definition of a class often defined as: • template • generalized description • pattern • “blueprint” ... describing a collection of similar items • a metaclass (also called a superclass) is a collection of classes • once a class of items is defined, a specific instance of the class can be defined

  5. Building a Class

  6. Encapsulation/Hiding Theobject encapsulates both data and the logical procedures required to manipulate the data method # 2 method # 1 data method # 6 method # 4 method # 5 Achieves“information hiding”

  7. What is a Class? occurrences roles organizational units things places external entities structures class name attributes: operations:

  8. Class Hierarchy furniture (superclass) table chair desk "chable" subclasses of the furniture superclass instances of chair

  9. Methods(a.k.a. Operations, Services) An executable procedure that is encapsulated in a class and is designed to operate on one or more data attributes that are defined as part of the class. A method is invoked via message passing.

  10. Messages

  11. Key Concepts • classes and class hierarchies • instances • inheritance • abstraction and hiding • objects • attributes • methods • encapsulation • polymorphism • messages

  12. Other • Recursive/parallel model • Like spiral/evolutionary • But differs 2 ways • OO Project metrics and estimation • OO Project tracking