python:about_python:python_inheritance_fundamentals
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python:about_python:python_inheritance_fundamentals [2018/02/24 23:21] – [Inheritance in Python] mithat | python:about_python:python_inheritance_fundamentals [2018/02/24 23:38] (current) – [What you'll need to know] mithat | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== What you'll need to know ===== | ===== What you'll need to know ===== | ||
- | * How to create a basic class. | + | * How to create |
* How to use the '' | * How to use the '' | ||
* How to use parameterized constructors. | * How to use parameterized constructors. | ||
Line 16: | Line 16: | ||
* Inheritance and code reuse | * Inheritance and code reuse | ||
* Inheritance in Python | * Inheritance in Python | ||
- | * Derived class constructors | ||
===== Inheritance ===== | ===== Inheritance ===== | ||
Line 109: | Line 108: | ||
- | ===== Derived class constructors ===== | ||
- | You can create additional constructors for your derived class if needed. In the following example, we are going to add an additional feature to the '' | + | ===== What you should do next ===== |
+ | This covers the very basics of inheritance in Python. To level up your use of inheritance in Python, you should next have a look at the following: | ||
+ | * Overriding methods. | ||
+ | * Derived class constructors (including calling parent class constructors). | ||
Copyright © 2011-2018 Mithat Konar. All rights reserved. | Copyright © 2011-2018 Mithat Konar. All rights reserved. |
python/about_python/python_inheritance_fundamentals.txt · Last modified: 2018/02/24 23:38 by mithat