2 - OOP Sheetal Mam.............
2 - OOP Sheetal Mam.............
c wan
ta l Ma
h e e
S
Prof
c wan
FUNCTION 1 FUNCTION l 2a
M FUNCTION 3
e eta
f Sh
Pro
FUNCTION 4 FUNCTION 5
Object 2
Object 1
Object 3
Data
Function
Encapsulation
Abstraction
Polymorphism
Inheritance
c wan
ta l Ma
h e e
S
Prof
wan
The implementation and state l M aof each
c object are privately held
e eta
inside a defined class.Prof Sh
Analogy: c wan
l M a
eetayou don’t have to know how the
When you drive aShcar,
f
Proare
gasoline and air mixed and ignited.
Instead you only have to know how to use the controls.
Draw map
Superclass
Vehicle
Subclasses an
c w
ta l Ma
e e
Automobile rof Sh Motorcycle Bus
P
c wan
ta l Ma
h e e
S
Prof
c wan
ta l Ma
h e e
S
Prof
multiple times.
interface.
c wan
ta l Ma
h e e
S
Prof
· Hybrid OO Languages
C++, Objective-C, Object-Pascal