OOPs Concepts
• Object
• Class
• Inheritance
• Polymorphism
• Abstraction
• Encapsulation
Object & Classes
Object & Classes
 SetTime()
 ShowTime()
 Brand
 DialType
 DialShape
 Movement
 WaterResistant
 StrapMaterial
ABC’s Watch
Object & Classes
 SetTime()
 ShowTime()
 Brand
 DialType
 DialShape
 Movement
 WaterResistant
 StrapMaterial
Watch of Person_1
 SetTime()
 ShowTime()
 Brand
 DialType
 DialShape
 Movement
 WaterResistant
 StrapMaterial
Watch of Person_2
 SetTime()
 ShowTime()
 Brand
 DialType
 DialShape
 Movement
 WaterResistant
 StrapMaterial
Watch of Person_2
Object & Classes
 SetTime()
 ShowTime()
 Brand
 DialType
 DialShape
 Movement
 WaterResistant
 StrapMaterial
Watch
Person_1.watch
Person_2.watch
Person_3.watch
Constructor
 SetTime()
 ShowTime()
 Brand
 DialType
 DialShape
 Movement
 WaterResistant
 StrapMaterial
Watch
Person_1.watch(“TimeWear”,”Analog”,”Round”,”Quartz”,30,”Leather”)
Allocate Size when an object is
invoked as well as Initialize values
Inheritance
Inheritance
 SetTime()
 ShowTime()
 Brand
 DialType
 DialShape
 Movement
 WaterResistant
 StrapMaterial
Watch
 SetDate()
 ShowDate()
 SetDay()
 ShowDay()
 DateDisplayType
AdvancedWatch
extends
Inheritance - Types
Interface
Polymorphism
Shape(side)
Shape(length,breadth)
Shape(radius)
Overloading / Overriding
Abstraction
Encapsulation

OOPs Concepts