Advertisement

Ooad

gantib
Aug. 4, 2010
Advertisement

More Related Content

Advertisement

Ooad

  1. OBJECT ORIENTED ANALYSIS AND DESIGN August 04, 2010
  2. Basic Principles of Object Orientation Object Orientation Encapsulation Abstraction Hierarchy Modularity
  3. What is Abstraction? Manages Complexity Salesperson Not saying Which salesperson – just a salesperson in general!!! Customer Product
  4. OOA to OOD
  5. OOA to OOD
  6. Process Flow for OOD
  7. Unified Modeling Language
  8. Different Views Users Designers Analyzers
  9. Activity Diagram Activity diagrams describe the workflow behaviour of a system Start Fork Branch Merge Joint End

Editor's Notes

  1. Before moving on, ask the students to name the four basic principles of OO (as a review).
  2. Discuss what makes a good abstraction with the students: Concise, Represents a single coherent concept, etc.
  3. Encapsulation is putting the “databits” and operations that manipulate them in the same place. Encapsulation DISALLOWS direct manipulation of things that have been encapsulated without utilising the supplied interface. Another example - the accelerator on a car. You put your foot down and car goes faster - this works on most cars, and you don’t worry about the cables, electronics, engine, etc.
  4. Modularity supports separation of concerns. Another example of modularity is a car, which is made up of a body, chassis, engine, wheels, etc.
  5. Hierarchy is not an organizational chart. Hierarchy is not a functional decomposition. Hierarchy is a taxonomic organization. The use of hierarchy makes it easy to recognize similarities and differences. For example, in botany, plants are organized into families, chemistry uses a periodic table to organize the elements. Another example -- telephone number, then a 0800 (free call) number, premium rate number, etc
  6. Review the 4 basic principles of OO (abstraction, encapsulation, modularity, and hierarchy) and why they are good. Ask the students to name the OO concepts (e.g., class, package, interface, etc.) that support those principles. Emphasize that OO facilitates the following best practices: Develop Iteratively Model Visually Use Component Architecture
Advertisement