Professional Documents
Culture Documents
Outline
Introduction
What is an Object?
Introduction
What is an Object?
Introduction
What is an Object?
a unique identity
description of its
structure
a state representing
its current condition
2 Behavior
System Analysis andor
design Lecture Note DEBRE BERHAN UNIVERSITY
Introduction to OO concepts
Orthogonal views of the software
Object Oriented system development methodology
Chapter2:Object Orientation the new software paradigm
Why object-orientation
Overview of the unified approach
Basics of OO concepts
cont..
cont..
What is a class?
cont..
What is a class?
cont..
What is a class?
cont..
cont..
cont..
Attributes or properties
cont..
Behavior or methods
An object behavior is described in methods or procedures
A method implements the behavior of an object.
Behaviour denotes the collection of methods that abstractly
describes what an object is capable of doing
cont..
1 Structured Paradigm
a development strategy based on the concept that a system should
be separated into two parts data and functionality
You develop a software in which data is separate from behavior
We have a program to access a database Focuses on the functions
of the system
2 Object Oriented Paradigm:A system is defined in a set of interacting
objects
Objects know things (have data) and do things (have functionality)
We have an application that exists in an object space (where both
the program and the data for the application reside
Centers on the object, which combines data and functionality
Why object-orientation
cont..
3 Promotion of reusability
Via inheritance, classes can be built from each other Only
differences and enhancements between the classes need to be
designed and coded
All previous functionality (and data) remains and can be used
without change
The real advantage of using an OO-approach is that you can
build on what you already have.
Cont..
Cont..
Cont..
Each cycle goes through all four phases and addresses the development
of a core workflow:
Requirement: the product is the use case model
Analysis: the product is the analysis model
Design: the product is the design and the architecture model
Implementation: the product is the implementation model
Test: the product is the test model
The life cycle phase of the UP are as follows
Inception: the seed idea is developed
Elaboration: the software design or architecture is defined
Construction: the software is built
Transition: the software is turned over to the user
OOA Vs OOD
Basics of OO concepts
Abstraction
The idea of focusing on the common properties and behaviours of
the object within some context, and ignore what’s unimportant or
irrelevant within the context.
Example 1
person class- essential X-stics of a person that we care about?
hard to say because person is so vague and we have not
defined.abstractions you create are relative to some context.
creating a driving app, you would care about a person in the
context of a driver.You can consider driving - licence -
number as an attribute.
student- some of the essential characteristics of a student?
the role-number, courses-name and grades in each course.
but a course, the student’s grade value may change but
student always have a grade attribute.
cont..
Inheritance
a relationship between classes where one class is the parent class of
another (derived) class.
allows classes to share and reuse behaviours and attributes.
The real advantage of inheritance is that we can build and reuse
what we already have.
An object-oriented system organized classes into a
“Subclass-Super class hierarchy”.
At the top of the hierarchy are the most general (base)
classes and at the bottom are the most specific classes
(sub-classes).
The parent class also is known as the bases class or super
class.
A subclass inherits all of the properties and methods
(procedures) defined in its super class.
cont..
Example1
Example2
System Analysis and design Lecture Note DEBRE BERHAN UNIVERSITY
Introduction to OO concepts
Orthogonal views of the software
Object Oriented system development methodology
Chapter2:Object Orientation the new software paradigm
Why object-orientation
Overview of the unified approach
Basics of OO concepts
cont..
cont..
Example
cont..
Example1
cont..
Example1
cont..
Example1