> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/programming/software-design/oop/objectorientedprogramming.md).

# ObjectOrientedProgramming

* 오브젝트 단위로 기능과 상태 값을 묶어서 관리하는 프로그래밍 기법을 의미합니다.
* 절차지향보다 유지보수가 쉬우며, 원하는 기능으로 오브젝트를 구성해 여러 군데에서 재사용이 가능합니다.
* 상속을 통해 원하는 오브젝트(객체)를 쉽고 빠르게 만들 수 있습니다.

## 용어

#### 상태 값 (Property)

* 객체(오브젝트)에 연관된 값들
* 전원의 온/오프 여부 등 값을 의미

#### 기능 (Method)

* 객체가 수행할 수 있는 기능, 동작을 의미
* 자신의 상태를 변경하거나 사용자가 원하는 동작을 수행하는 것을 의미
* C 계열 언어에서는 함수(function)라고도 부릅니다.

## 객체지향 문법

* [구조체 (struct)](broken://pages/8e5564ab2fb4a100398b9f0a9bec2c17c7763547)
* [클래스 (class)](broken://pages/836ac9873d9d6bcfabfb9ae0bbcf90693e589f81)
* [열거형 (Enumeration, enum)](broken://pages/cfe34ab3ea0f6109f47747de7e2a6fb4ae224969)
* [Swift프로토콜(Protocol)](broken://pages/3a8c9d85b0fd8374c5c4e5da9d23b69c7949397c)

## 관련 원칙

* [SOLID 원칙](broken://pages/44c6def30f1dd278304d0bd92facb419233df601)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/programming/software-design/oop/objectorientedprogramming.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
