Files
python/concepts/class-inheritance/introduction.md

8 lines
466 B
Markdown
Raw Permalink Normal View History

2022-02-27 23:26:29 +05:30
# Introduction
2022-02-27 23:27:52 +05:30
[Inheritance](inherit) represents what is known as a relationship. When a Derived class inherits from a Base class, you've established a relationship in which Derived is a specialised version of Base.
2022-02-27 23:26:29 +05:30
Either by using single or multiple inheritance, we can inherit the properties from the base class. Inheritance is used because it helps in code reusability.
2022-02-27 23:27:52 +05:30
2022-02-27 23:28:21 +05:30
[inherit]:https://realpython.com/inheritance-composition-python/#whats-inheritance