An Initiative: Abhyaas Edu Corp
An Initiative: Abhyaas Edu Corp
School
OBJECTS AND CLASSES
Finishing
School
Finishing
School
OOPS Concepts
Class
Object
Abstraction
Encapsulation
Inheritance
Polymorphism
Dynamic Binding
Message Passing
An instance of a Class.
Object will
messages.
communicate
withgeach
other
by
passing
Finishing
School
Finishing
School
Blueprint analogy
iPod blueprint
state:
current song
volume
battery life
behavior:
power on/off
change station/song
change volume
choose random song
create
s
iPod #1
state:
song = KALHO NA
HO
volume = 17
battery life = 2.5
hrs
behavior:
power on/of
change station/song
change volume
choose random
song
iPod #2
state:
song = yaarian"
volume = 9
battery life = 3.41
hrs
behavior:
power on/of
change station/song
change volume
choose random
song
iPod #3
state:
song = Tum hi ho"
volume = 24
battery life = 1.8
hrs
behavior:
power on/of
change station/song
change volume
choose random
song an Abhyaas Edu Corp initiativ
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School
Finishing
School