You are on page 1of 1

Class - Blueprint of an Object

Object - Instance of a Class


Example - Car can be class and Object can be BMW, Colour, Weight, Speed, Model can
be features and startCar(),

OOPS -
Encapsulation - Protecting our data, Example - Bag holding all items like Pens,
books, tiffin box and waterbottle
Polymorphism - Different behaviours in different situation, Example - A boy can
behave as a son at home, customer at a store, sudent at school and player in sports
Abstraction - Hiding irrelevevant data, Example - ATM machine will perfom many
tasks but will only show relevant message in screen
Inheritence - one property of an object is aquiring another property of an object,
Example - Child aquiring habits from parents

You might also like