Master OOPs Concepts in Java
Master OOPs Concepts in Java
OOPS Concepts
in Java
@vikasrajputin
1. Concepts in OOPS
➔ Object
➔ Class
➔ Inheritance
➔ Encapsulation
➔ Abstraction
➔ Polymorphism
Chair🪑
It can be considered as an object, with
behaviors like wheel movement, adjust
height, recline, etc. and attributes like
color, brand, price, etc.
Chair🪑
Objects like Wheel chair, Office chair,
Recliner chair belong to Chair class.
Phone📱
Parent class Phone can have two child classes -
TelePhone
MobilePhone
Bank Locker🔐
A Banker Locker, wraps your valuables into a
single unit(locker) and protects it via
passcode.
Drug Capsule💊
Wraps different medicines into a single unit
and protect them from outside
environment.
Car🚙
In car, all the complexity like engine,
machinery, etc is hidden from you.
Chess 🐴
All chess pieces like king, rook, bishop, queen,
knight, etc. move differently. Bishop moves
diagonally, Rooks move horizontal and vertical,
etc.
Vikas Rajput
@vikasrajputin