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.
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.
'Java' 카테고리의 다른 글
|Blocking or Non-Blocking, Synchronous and Asynchronous (0)||2021.10.10|
|What is Java GC(Garbage Collection)? (0)||2021.10.05|
|What is Java OOP(Object Oriented Programming)? (0)||2021.10.02|
|Jackson ObjectMapper 정리 (2)||2021.06.14|
|자바 인터페이스(Java Interface)는 무엇인가? (4)||2020.06.25|
|SHA-2 256, 512 해싱 하기 (0)||2019.09.06|