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

# Inheritance

Create new class using existing class

Make relation with parent and child

Use "**extends**"

child class inherit all of members excluding constructor, initializing block.

The number of members in child class  >= The number of members in parent(ancestor) class
