









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










State
Tabulate typical input sequences: three nickels nickel, dime dime, nickel two dimes two nickels, dime
state diagram
Inputs: N, D, reset
Output : open
Rese t
N
N
N
D
D
N D
[ope n]
[ope n] [ope n] [ope n]
S
S1 S
S3 S4^ S5 S
S [ope n]
S
D
Vending Machine : suitable abstract representation
Object vs simple value
Behavior The state of an object represents the cumulative results of its behavior.
Operation Types
Modifier : alters the state of an object Selector : accesses the state of an object does not alter the state Iterator : permits all parts of an object to be accessed in well-defined order Constructor : creates an object and initializes its state Destructor : frees the sate of an object and/or destroys the object itself
active object : own thread of control, passive object
Topology โ 1
Data
Sub- program
(First and early second generation)
Relatively flat physical structure Global data and sub-programs
Topology โ II
Data
Subprogram
(Late second and early third generation)
Procedural abstraction; parameter passing mechanisms; nesting; scope and visibility declaration
OO Topology
Object Oriented
(OOP) OO Programming
(OOD) OO Design
Object Oriented
Strength ๏ RO โ knowledge base; PO โ computation-intense operations; OO โ broadest set of application, serves architectural framework in which other paradigm can be employed
โ a way of organizing program on the basis of some conceptual model of programming & an appropriate language to make programs written in the style clear โ โ Bobrow & Stefik