Академический Документы
Профессиональный Документы
Культура Документы
CHAPTER NO.1
Object Oriented Development
2
CHAPTER 1:- SYLLABUS
DTEL 3
CHAPTER-1 SPECIFIC OBJECTIVE / COURSE
OUTCOME
The student will be able to:
2 Modeling techniques.
DTEL 4
LECTURE 1 Object Oriented Concept
•What is model?
• Modeling consists of building an abstraction of reality.
• Abstractions are simplifications because:
• They ignore irrelevant details and
• They only represent the relevant details.
• What is relevant or irrelevant depends on the purpose of the model.
DTEL 5
LECTURE 1 Object Oriented Concept
DTEL 6
LECTURE 1 Object Oriented Concept
• Examples:
• System: Aircraft
• Models: Flight simulator, scale model
• Views: All blueprints, electrical wiring, fuel
7
system
DTEL 7
LECTURE 1 Object Oriented Concept
* *
System Model View
Described by Depicted by
Airplane: System
DTEL 8
LECTURE 1 Object Oriented Concept
•Class?
.
•Object?
•Instance?
DTEL 9
LECTURE 1 Object Oriented Concept
•Object Orientation?
•Organize software as a collection of discrete
objects that can incorporate both data structure
and behavior.
•Object oriented approach include:
•Identity
•Classification
•Inheritance
•Polymorphism
10
DTEL 10
LECTURE 1 Object Oriented Development
•Development?
• Software development life Cycle : Analysis Design
and implementation.
•OO development is a conceptual process
independent of Programming language until the
final stage.
Why Modeling?
•Design flaws found earlier are more easy to
rectify.
•It encourages developers to think in terms of
application.
•So that details of data structures & functions
addressed effectively. 11
DTEL 11
LECTURE 1 Object Oriented methodology
DTEL 12
LECTURE 1 Object Oriented methodology
• System Design
• High – level strategy – the system architecture.
• Class Design
• Adds details to the analysis model in accordance
with the system design strategy.
• Implementation
• Translates the classes and relationships
developed during class design into a particular
programming language, database or hardware.
DTEL 13
LECTURE 1 Object Modeling in Practice
Foo
Amount
CustomerId
Deposit()
Withdraw()
GetBalance()
DTEL 14
LECTURE 1 Object Modeling in Practice
“Dada” Foo
Amount Amount
CustomerId CustomerId
Deposit() Deposit()
Withdraw() Withdraw()
GetBalance() GetBalance()
Account
Amount
CustomerId
Deposit()
Withdraw()
Is Foo , Dada the right name? GetBalance()
DTEL 15
LECTURE 1 Object Modeling in Practice
Account
Amount Customer
Bank
Name
Name Deposit()
Withdraw()
GetBalance()
DTEL 16
LECTURE 1 Object Modeling in Practice
THANK YOU
DTEL 17
LECTURE 2 Modeling as a design technique
18
DTEL 18
LECTURE LECTURE 2 SYSTEM
2:- NUMBER The Three Models
• Class Model
– Describes the structure of objects (data) in a
system.
• State Model
– Represents the control aspects of the system.
– Describes those aspects of objects concerned
with time and sequencing of operations
• Interaction Model
– Describes interaction between objects.
DTEL 19
LECTURE LECTURE 2 SYSTEM
2:- NUMBER The Class Model
Association
Class
Multiplicity
SimpleWatch
1 1 1
1 2 1
PushButton Display Battery Time
DTEL 20
LECTURE LECTURE 2 SYSTEM
2:- NUMBER The Three Models
• Objects
• Is a concept, abstraction, or thing with identity
that has meaning for an application.
• It is an instance, or occurrence of a class.
• Classes
• Class describes a group of objects with the
same properties, behavior, kinds of
relationships, and semantics.
DTEL 21
LECTURE LECTURE 2 SYSTEM
2:- NUMBER The Class Model
THANK YOU
DTEL 22
LECURE 3 Links
• Links
– A link is a physical or conceptual connection
among objects.
– Eg. PD works for YCCE.
– Most links relate two objects.
– UML notation for link is line between objects.
– In programming links can not be modeled as it
is.
23
DTEL 23
LECTURE 3 Association
DTEL 24
LECTURE 3 Association
TarifSchedule TripLeg
DTEL 25
LECTURE 3 Association
Country 1 1 City
name:String name:String
1-to-1 association
Point
Polygon
* x: Integer
y: Integer
draw()
1-to-many association
DTEL 26
LECTURE 3 Association
Company
StockExchange * * tickerSymbol
DTEL 27
LECTURE 3
THANK YOU
DTEL 28
LECTURE 4 Multiplicity
DTEL 29
LECTURE 4 Multiplicity
DTEL 30
LECTURE 4 Multiplicity
• Unspecified
• Exactly one
• Zero or more (many, unlimited)
• One or more
• Zero or one
• Specified range
• Multiple, disjoint ranges
DTEL 31
LECTURE 4 Links and Association
DTEL 32
LECTURE 4 Links and Association
• Qualified Association
– Disambiguate the objects for a “many”
association end.
– Eg.
• Generalization
– Relationship between a class and one or more
variations of the class.
– “is a ” relationship.
DTEL 33
LECTURE 4 Association
Without qualification
1 * File
Directory
filename
With qualification
1
Directory filename File
DTEL 34
LECTURE 4
THANK YOU
DTEL 35
LECTURE 5 Navigating Class Model
• Abstract classes
• Has no direct instance.
• Defined methods that can be inherited by
subclasses.
DTEL 37
LECTURE 5 Abstract Classes
Shape
+move()
+erase() : void Shape
+draw() : void {abstract}
+move()
+erase() : void {abstract}
+draw() : void {abstract}
DTEL 38
LECTURE 5 Aggregation
1 0..2
Muffler Tailpipe
diameter diameter
DTEL 39
LECTURE 5 Aggregation
TicketMachine
3
ZoneButton
DTEL 40
LECTURE 5 Generalization
DTEL 41
LECTURE 5 Generalization
Shape
+draw()
Square
+draw()
DTEL 42
LECTURE 5
THANK YOU
DTEL 43
LECTURE 6 Metadata
DTEL 44
LECTURE 6 Metadata
– To devise a package
• Carefully decide each package’s scope
• Define each class in a single package
• Make package cohesive.
– Association and generalization should appear in
single package.
DTEL 45 45
LECTURE 6 Package
Account
Bank Customer
THANK YOU
DTEL 47 47
LECTURE 7 Strengths of Object Orientation
•A single paradigm
•Facilitates architectural and code reuse
•Models more closely reflect the real world
•More accurately describe corporate data and
processes
•Decomposed based on natural partitioning
•Easier to understand and maintain
•Stability
•A small change in requirements does not mean
massive changes in the system under
development
DTEL 48 48
LECTURE 7 Characteristics of OOD
DTEL 49 49
LECTURE 7 Characteristics of OOD
DTEL 50 50
LECTURE 7 advantages of OOD
DTEL 51 51
OBJECT 1:-
LECTURE ORIENTED CONCEPTS
NUMBER SYSTEM
THANK YOU
DTEL 52
OBJECT 1:-
LECTURE ORIENTED CONCEPTS
NUMBER SYSTEM
DTEL 53