DEV Community

Cover image for OOPS IN PROGRAMMING
Shagun-tom
Shagun-tom

Posted on

OOPS IN PROGRAMMING

OOPS stand for object oriented programming system
it is a main concept in programming 🖥️ language such as java and python or more .
it make code readable, reusable, scalable and modular .
it have few concepts such as class, object and main four pillars.
CLASS : class a is blueprint of an object .
example - construction design for home.
OBJECT : real identity .
example : actual home.

FOUR MAIN PILLARS ->

Inheritance :- access property from parent class
eg:- single level, multi level

Abstraction : hiding internal details . if we make a class abstraction then the whole class become abstract . to make a class abstract we use abstract keyword .

Polymorphism :- poly means many and morphism means form . hence the overall mean is one identity have many form .
eg:- phone

Encapsulation :- wrap class, method and other data in one .
in enhance privacy by making class private .

Top comments (0)