Professional Documents
Culture Documents
Use Only: Introduction To Object-Oriented Programming
Use Only: Introduction To Object-Oriented Programming
nl
O
se
U
tre
en
Session: 1 C
h
ec
Introduction to
pt
rA
Object-oriented Programming
Fo
O
Differentiate between Object-oriented and Object-
se
based programming
U
Explain the concepts of OOP
tre
en
C
h
ec
pt
rA
Fo
nl
person or a
O
thing, living or
se
non-living which
U
has some
tre
characteristics or
en
Object- attributes which
C oriented
programming
help to describe
h
it
ec
‘Object’ term
concept
pt
1970s
1960s
rA
Smalltalk
Simula 67
Fo
Alan Kay
O
se
U
tre
en
C
h
ec
pt
rA
Fo
O
Makes use of ‘objects’
se
That are data structures
U
Consisting of attributes and behavior along with their interactions
tre
en
For designing computer programs
C
h
ec
pt
rA
Fo
O
OOP uses a collection of objects that Object-based programming is more or
se
interact with each other to accomplish a less a limited version of OOP.
U
task.
tre
OOP includes features such as Object-based programming has no
abstraction, encapsulation, inheritance, implicit inheritance,
en
modularity, and polymorphism. no polymorphism, and only a reduced
C number of available objects.
h
C++, C#, and Java are some examples of Visual Basic and JavaScript are an
ec
language.
rA
Fo
nl
O
se
U
Encapsulation Abstraction
tre
en
C
h
ec
pt
Inheritance Polymorphism
rA
Fo
tre
Used to restrict
information access to some
in a small
something’
en
of the
partdata
of amembers
program by
C
Provides bundlingobjects
of data members and
h
methods into an enclosed structure
ec
pt
rA
Fo
O
can be encapsulated.
se
U
tre
en
C
h
ec
pt
rA
Fo
O
se
The figure shows an example of abstraction using the
U
ATM machine.
tre
en
C
h
ec
pt
rA
Fo
O
and rights of an individual to his/her
se
successors
U
tre
Inheritance helps to
en
Define hierarchical relationships among classes at
different levels C
h
ec
nl
Assigns a different usage
= =
O
or meaning to something
Many Forms
se
in different contexts
U
tre
en
C
h
ec
pt
rA
Fo
O
se
U
tre
en
C
h
ec
pt
rA
Fo
nl
O
se
U
tre
en
C
h
ec
pt
rA
Fo
O
by making use of ‘objects’, which are a copy of real world
se
entities.
U
Encapsulation is a feature used to restrict access to some of the
tre
data members by objects.
Abstraction is a mechanism of showing only the relevant details
en
polymorph.
Fo