Object Oriented Architecture and Design - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Object Oriented Architecture and Design

Description:

OOP Theresa Devine. GRADY BOOCH. SG GANESH. They both agree about abstraction and ... Encapsulation - a class includes both the data and operations that ... – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 22
Provided by: programmin9
Category:

less

Transcript and Presenter's Notes

Title: Object Oriented Architecture and Design


1
Object Oriented Architecture and Design
  • OOP Theresa Devine

2
The problem with words
  • Grady booch
  • SG Ganesh

3
Clarity
  • They both agree about abstraction and
    encapsulation
  • Booch
  • Modularity
  • Hierarchy
  • Ganesh
  • Inheritance
  • Polymorphism
  • Booch has a higher view in his choice of words
  • Ganesh is a bit more practical

4
3 Fundamentals of Object-Oriented Paradigm
  • Encapsulation - a class includes both the data
    and operations that operate on the data. It can
    hide the implementation details.
  • A user of the class only sees the public
    interface.
  • You use the concepts of abstraction, modularity
    and hierarchy to create this.
  • Polymorphism - many classes can perform the same
    behavior and we can use them interchangeably.
  • You use abstraction, modularity, encapsulation
    and inheritance to create this
  • Inheritance - one class can build on top of
    another class and inherit all its methods and
    attributes.
  • You are using abstraction, modularity and
    hierarchy to create this

5
Modularity and abstraction
6
Hierarchy and Layers
7
The first practical application of the theory
Layers
8
Right click gt Add gt New Folder
9
You have added Layers to your class library
10
Definitions
11
Example website
12
Here is an example of a web page making a call to
create an invitation
13
Add entities (these are what you have been
making)
14
Add the logic layer class
15
Add communication layer class
16
Review Namespaces
  • Namespaces allow you to create a system to
    organize your code.
  • Namespaces are hierarchical
  • The dot operator is used to define the hierarchy
  • Examples
  • MyEngineWithLayers.Logic.Invitation
  • MyEngineWithLayers.Communication.Invitation
  • MyEngineWithLayers.Entity.Invitation
  • MyEngineWithLayers.DataAccess.Invitation
  • Dot Operator
  • Logic.Invitation is actually shorthand for
    defining a namespace named Invitation that
    contains a namespace named Logic
  • You invoke a method on class by writing the name
    of the object followed by the dot operator and
    then the method name

17
Let add a test project and see our layers
working. (also add reference, import namespace)
18
Test method
19
Run the test
20
Debug
21
Test results
Write a Comment
User Comments (0)
About PowerShow.com