> For the complete documentation index, see [llms.txt](https://comaqa.gitbook.io/java-automation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://comaqa.gitbook.io/java-automation/oop-v-java/zadaniya-k-glave.md).

# Задания к главе

Исходя из своего жизненного опыта, выберите предмет, который вам больше всего нравится или наиболее полезен. После чего мы его опишем в концепции ООП. Объект будет усложняться на протяжении изучения главы. В конце раздела он должен иметь следующее:

1. Конструктор (ы)
2. Поля, со всеми типами модификаторов
3. Не менее 5 свойств (характеристики)
4. Не менее 10 методов (действия), включая статические
5. Переопредёленные методы toString и equals
6. Обработка исключительных ситуаций с выводом человекочитаемого сообщения об ошибке
7. Перечисление Enum
8. Анонимный класс

Помимо этого должна быть реализована иерархия классов:

1. Базовый класс
2. Не менее трёх наследников
3. Один из них - обобщённый
4. Интерфейс, от которого наследуется не менее двух классов.


---

# 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://comaqa.gitbook.io/java-automation/oop-v-java/zadaniya-k-glave.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.
