> 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/solid/lspliskovsubstitutionprinciple.md).

# LSPLiskovSubstitutionPrinciple

{% hint style="info" %}
프로그램의 객체는 그 객체의 하위 타입의 인스턴스로 바꿀 수 있어야 합니다\
(하위 클래스는 항상 자신의 상위 클래스로 교체할 수 있어야 함).
{% endhint %}

* 하위 클래스는 인터페이스의 규약을 깨뜨리지 않으면서 상위 클래스의 행위를 확장만 할 수 있어야 합니다.
* 이 원칙은 상속의 적절한 사용을 보장합니다.


---

# 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/solid/lspliskovsubstitutionprinciple.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.
