Explain me OOP's concept in simple terms

Explain me OOP's concept in simple terms

·

3 min read

--

This short and simple post will let you know about OOP. An OOP is a way of programming that enables programmers to think like they are working with a real-life institution. In OOP, objects have fields to store knowledge/state/data and can do various works.


So now, let's learn some terms that will make the concept of OOP easier.

No matter which language or framework you learn or use, all of them today is based on OOP's concept.


Encapsulation

Encapsulation is defined as binding together the data and the functions that manipulated them.

  • Use the var keyword to make data members private.
  • Use setter methods to set the data and getter methods to get that data.

Class

Class is a blueprint or prototype for creating particular from which objects are created. It represents a set of properties or method that are common to all objects of one type.

Object

The object is an instance if a class that has the structure of its blueprint but also owns its unique state and behavior.

Abstraction

Abstraction refers to providing only essential about the data to the outside world, hiding the background details or implementation.

Polymorphism

The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form.

Inheritance

The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important features of Object-Oriented Programming.


Read More

Originally => https://rahulism.tech/article/oop-concept-in-simple-terms/


😁Thanks For Reading | Happy Coding😎

Did you find this article valuable?

Support Rahul by becoming a sponsor. Any amount is appreciated!