Object-Oriented Programming

mohamed amine yousfi
2 min readJun 26, 2021

Blogs offer insight into everyday lives, how it feels to be that person, and live that life. After reading the blog of Object-Oriented Programming, I started understanding the concept of this lesson, which I read about before.

OOP, concepts in Java work by letting programmers create components that can be re-used in different ways, but still maintain security.

To start with, let’s give you a simplistic, A.E.I.P This keyword will help us to more understand what is Object-Oriented Programming.

OOP concepts in Java are the main ideas behind Java’s Object-Oriented Programming. They are abstraction, encapsulation, inheritance, and polymorphism.

To begin with, abstraction means using simple things and avoid repeating the action.

Secondly, encapsulation is a protective barrier that keeps the data and code safe within the class itself.

Encapsulation in Java

Thirdly, inheritance lets us build on previous work without reinventing the wheel.

Last but not least, polymorphism lets programmers use the same word to mean different things in different contexts. It could be by method Overloading or Overriding.

Overloading and Overriding in Java Script

Overriding is how you get polymorphism. Polymorphism is the ability of an object to vary behavior based on its type.
Method overloading means writing two or more methods in the same class by using the same method name, but the passing parameters are different.

These four concepts allow us to use the O.O.P simply and help us to solve a complex task.

--

--