What is OOPS(Object Oriented Programming)?

Simply put, from the name itself, OOPS deals with objects to do certain jobs.

Many languages use OOPS. Some popular languages are Java, JavaScript, Python, C++ etc.

OOPS has core topics which have a great advantage over plain old functional programming languages.

Some of the most important topics in OOPS are Class, Object, Inheritance, Abstraction, Polymorphism, Encapsulation.

Object: An entity that has state and behaviour is known as an object e.g., chair, bike, marker, pen, table, car, etc. It can be physical or logical (tangible and intangible).

Class: A class is a group of objects which have common properties. It is a template or blueprint from which objects are created. It is a logical entity. It can't be physical.

Inheritance: Inheritance is a mechanism in which one object acquires all the properties and behaviours of a parent object. It is an important part of OOPS (Object Oriented programming system).

Abstraction: A class which is declared with the abstract keyword is known as an abstract class in Java. It can have abstract and non-abstract methods (method with the body).

Polymorphism: Polymorphism is a concept by which we can perform a single action in different ways. Polymorphism is derived from 2 Greek words: poly and morphs. The word "poly" means many and "morphs" means forms. So polymorphism means many forms.

Encapsulation: Encapsulation is a process of wrapping code and data together into a single unit, for example, a capsule which is mixed of several medicines.

OOPS.png