> For the complete documentation index, see [llms.txt](https://yubin551.gitbook.io/java-note/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yubin551.gitbook.io/java-note/basic-object-oriented.md).

# Basic Object-Oriented

> 粗略的談一下物件導向概念，避免開始寫Java了卻不知道自己到底在幹嘛。
>
> 這裡適合有點程式基礎的人看。(不論學過怎樣的程式語言)
>
> 沒有程式基礎的看個印象，之後再回來慢慢思考。

物件導向是把真實世界模擬成各種物件，物件之間彼此會交互運作。

## 物以類聚

『物』，物件，真實存在的物體。

『類』，類別，定義好的藍圖，**利用類別來產生物件**。


---

# 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:

```
GET https://yubin551.gitbook.io/java-note/basic-object-oriented.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
