티스토리 뷰

Java

What is Java OOP(Object Oriented Programming)?

RyanGomdoriPooh 2021. 10. 2. 01:32

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.

 

  1. The most important thing in OOP is to focus on the object and look at it.
  2. In OOP, objects should be viewed as components of the cooperative community to implement functions.
  3. 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.

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함