190 likes | 469 Views
Chapter 13. Object-Oriented Techniques. O bject oriented programming (Booch 1991). A major factor in the invention of Object-Oriented approach is to remove some of the flaws encountered with the procedural approach. .
E N D
Chapter 13 Object-OrientedTechniques
Object oriented programming (Booch 1991) A major factor in the invention of Object-Oriented approach is to remove some of the flaws encountered with the procedural approach. • In OOP, data is treated as a critical element and does not allow it to flow freely. • It bounds data closely to the functions that operate on it and protects it from accidental modification from outside functions. • OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects. • A major advantage of OOP is code reusability.
Some important features of Object Oriented programming • Emphasis on data rather than procedure • Programs are divided into Objects • Data is hidden and cannot be accessed by external functions • Objects can communicate with each other through functions • New data and functions can be easily added whenever necessary • Follows bottom-up approach Source: http://www.startvbdotnet.com/oop/default.aspx
Concepts of OOP ObjectsClassesData Abstraction and EncapsulationInheritancePolymorphism Source: www.bilmuh.gyte.edu.tr/.../icpp_oop1.html
Object-Orientation OOP Tutorial : http://homepages.north.londonmet.ac.uk/~chalkp/proj/ootutor/objects.html
Unified Modelling Language (UML) • The Unified Modeling Language (UML) is a standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, as well as for business modeling and other non-software systems. • The UML is a very important part of developing object oriented software and the software development process. • The UML uses mostly graphical notations to express the design of software projects. Using the UML helps project teams communicate, explore potential designs, and validate the architectural design of the software.
Each UML diagram is designed to let developers and customers view a software system from a different perspective and in varying degrees of abstraction. UML diagrams commonly created in visual modeling tools include: Use Case Diagram Class Diagram Interaction Diagram State Diagram Activity Diagram Physical Diagram UML Diagrams
displays the relationship among actors and use cases Use Case Diagram Use cases are used in almost every project. They are helpful in exposing requirements and planning the project. During the initial stage of a project most use cases should be defined, but as the project continues more might become visible. http://pigseye.kennesaw.edu/~dbraun/csis4650/A&D/UML_tutorial/use_case.htm
models class structure and contents using design elements such as classes, packages and objects. It also displays relationships such as containment, inheritance, associations and others Class diagram Class diagrams are used in nearly all Object Oriented software designs. Class diagrams are use to describe the Classes of the system and their relationships to each other. Classes are composed of three things: a name, attributes, and operations.
displays the time sequence of the objects participating in the interaction. This consists of the vertical dimension (time) and horizontal dimension (different objects). Sequence Diagram
displays the sequences of states that an object of an interaction goes through during its life in response to received stimuli, together with its responses and actions Statechart Diagram
displays a special state diagram where most of the states are action states and most of the transitions are triggered by completion of the actions in the source states. This diagram focuses on flows driven by internal processing Activity Diagram
UML Modeling Tools • Rational Rose • Enterprise Architect • Select Enterprise • Visual CASE
End of Chapter 13 Thank You for Your Attention