Professional Documents
Culture Documents
Oops
Oops
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