Object Oriented Design Jerry KotubaSYST39409- Object Oriented Methodologies1.
Ch 1 Object-Oriented Programming
-
Upload
bryce-briones -
Category
Documents
-
view
219 -
download
0
Transcript of Ch 1 Object-Oriented Programming
-
8/13/2019 Ch 1 Object-Oriented Programming
1/25
An Introduction to Programming Using Alice
Object-Oriented
Programming
-
8/13/2019 Ch 1 Object-Oriented Programming
2/25
An Introduction to Programming Using Alice
Object-Oriented Programming
An algor i thm is a step-by-step process.
A com puter program is a step-by-step set of
instructions for a computer.
Every computer program is an algorithm.
Algorithms have a long history in science,
technology, engineering and math.
-
8/13/2019 Ch 1 Object-Oriented Programming
3/25
An Introduction to Programming Using Alice
Object-Oriented Programming
Early computers were
far less complex than
computers are today.
Their memories were
smaller and their programs
were much simpler.
-
8/13/2019 Ch 1 Object-Oriented Programming
4/25
An Introduction to Programming Using Alice
Object-Oriented Programming
They usually executed onlyone program at a time.
-
8/13/2019 Ch 1 Object-Oriented Programming
5/25
An Introduction to Programming Using Alice
Object-Oriented Programming
Modern computers are
smaller, but far more
complex than earlycomputers.
The can execute many
programs at the same time.
-
8/13/2019 Ch 1 Object-Oriented Programming
6/25
An Introduction to Programming Using Alice
Object-Oriented Programming
Computer scientists have
introduced the notion of
objects and object-or iented programm ingto
help manage the growing
complexity of modern
computers.
-
8/13/2019 Ch 1 Object-Oriented Programming
7/25An Introduction to Programming Using Alice
Object-Oriented Programming
An objectis anything that can be represented by
data in a computers memory and manipulated by
a computer program.
-
8/13/2019 Ch 1 Object-Oriented Programming
8/25An Introduction to Programming Using Alice
Object-Oriented Programming
An objectis anything that can be represented by
data in a computers memory and manipulated by
a computer program.
Numbers
-
8/13/2019 Ch 1 Object-Oriented Programming
9/25An Introduction to Programming Using Alice
Object-Oriented Programming
An objectis anything that can be represented by
data in a computers memory and manipulated by
a computer program.
Text
-
8/13/2019 Ch 1 Object-Oriented Programming
10/25An Introduction to Programming Using Alice
Object-Oriented Programming
An objectis anything that can be represented by
data in a computers memory and manipulated by
a computer program.
Pictures
-
8/13/2019 Ch 1 Object-Oriented Programming
11/25An Introduction to Programming Using Alice
Object-Oriented Programming
An objectis anything that can be represented by
data in a computers memory and manipulated by
a computer program.
Sound
-
8/13/2019 Ch 1 Object-Oriented Programming
12/25An Introduction to Programming Using Alice
Object-Oriented Programming
An objectis anything that can be represented by
data in a computers memory and manipulated by
a computer program.
Video
-
8/13/2019 Ch 1 Object-Oriented Programming
13/25An Introduction to Programming Using Alice
Object-Oriented Programming
An object is anything that can be represented by data.
-
8/13/2019 Ch 1 Object-Oriented Programming
14/25An Introduction to Programming Using Alice
Object-Oriented Programming
Anobject can be something
in the physical world or
even just an abstract idea.
An airplane, forexample, is
a physical object that can
be manipulated by a
computer.
-
8/13/2019 Ch 1 Object-Oriented Programming
15/25An Introduction to Programming Using Alice
Object-Oriented Programming
Anobject can be something
in the physical world or
even just an abstract idea.
A bank transaction is an
example of an object that
is not physical.
-
8/13/2019 Ch 1 Object-Oriented Programming
16/25An Introduction to Programming Using Alice
Object-Oriented Programming
To a computer, an object is
simply something that can
be represented by data in
the computers memory and
manipulated by computer
programs.
-
8/13/2019 Ch 1 Object-Oriented Programming
17/25
-
8/13/2019 Ch 1 Object-Oriented Programming
18/25An Introduction to Programming Using Alice
Object-Oriented Programming
Computer programs
implement algorithms that
manipulate the data.
In object-oriented
programming, the programs
that manipulate theproperties of an object are
the objects methods.
-
8/13/2019 Ch 1 Object-Oriented Programming
19/25An Introduction to Programming Using Alice
Object-Oriented Programming
We can think of an object
as a collection of properties
and the methods that are
used to manipulate those
properties.
Properties
Methods
-
8/13/2019 Ch 1 Object-Oriented Programming
20/25
An Introduction to Programming Using Alice
Object-Oriented Programming
A classis a group of
objects with the same
properties and the same
methods.
-
8/13/2019 Ch 1 Object-Oriented Programming
21/25
An Introduction to Programming Using Alice
Object-Oriented Programming
Each copy of an object
from a particular class iscalled an instance of
the object.
-
8/13/2019 Ch 1 Object-Oriented Programming
22/25
An Introduction to Programming Using Alice
Object-Oriented Programming
The act of creating a
new instance of anobject is called
instantiation.
-
8/13/2019 Ch 1 Object-Oriented Programming
23/25
An Introduction to Programming Using Alice
Object-Oriented Programming
A class can be thought
of as a blueprint forinstances of an object.
-
8/13/2019 Ch 1 Object-Oriented Programming
24/25
-
8/13/2019 Ch 1 Object-Oriented Programming
25/25
A I t d ti t P i U i Ali
Object-Oriented Programming
The same terminology
is used in most object-
oriented programming
languages.
Object
Instance
Property
MethodInstantiation
Class
State