mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-30 02:46:52 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
731 B
Markdown
8 lines
731 B
Markdown
# Inheritance
|
|
|
|
Inheritance is a fundamental concept in object-oriented programming where a new class (called a subclass or derived class) acquires properties and behaviors from an existing class (called a superclass or base class). This allows for code reuse and the creation of hierarchical relationships between classes, promoting a more organized and maintainable codebase. The subclass can extend the superclass by adding new attributes and methods or overriding existing ones.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Java Inheritance](https://jenkov.com/tutorials/java/inheritance.html)
|
|
- [@article@Inheritance in Java with Example](https://www.digitalocean.com/community/tutorials/inheritance-java-example) |