What is Java OOP(Object Oriented Programming)?
We have a lot of thoughts about OOP(Object Oriented Programming).
But many people can't answer easily. Some people answer SOLID principle.
From the beginning class, we are going to learn about the basics of OOPs in JAVA.
In order to implement OOP in JAVA, We have to satisfy a few things.
The concepts for OOP is as follows.
- Class
- Object
- Abstraction
- Inheritance
- Encapsulation
- Polymorphism
- Attribute
- Method
- ...
The aim of concepts is implementing real entities in programs.
So, We create class methods and variables to reuse them with capsulation.
OOP(Object-oriented programming) is composed of classes and objects.
I think SOLID or GRASP are important factors. Eventually We have to think "Cohesion" and "Coupling".
"Cohesion" and "Coupling" strengthen reusability and responsibility for programming code.
It's easy to maintain codes which is implemented by "Cohesion" and "Coupling".
Of course, there is no correct answer to what is OOP.
Although we know that object orientation is literally aimed at objects, We are still looking at OOP centering on class or inheritance.
A simple way to design OOP is as follows.
- The most important thing in OOP is to focus on the object and look at it.
- In OOP, objects should be viewed as components of the cooperative community to implement functions.
- It is to give appropriate responsibilities and roles to objects participating in cooperation.
In conclusion, I think OOP is a way to make good codes that are easy to maintain.