python:about_python:about_python_iv
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
python:about_python:about_python_iv [2013/07/05 06:19] – created mithat | python:about_python:about_python_iv [2014/02/28 22:18] – [Inheritance] mithat | ||
---|---|---|---|
Line 33: | Line 33: | ||
One of the advantages of implementing classes with inheritance is **code reuse**. | One of the advantages of implementing classes with inheritance is **code reuse**. | ||
- | Since you do not need to rewrite the code that is common to both base and derived classes, you end up writing less code. But even more important, when you fix a bug in the base class, it automatically propagates | + | Since you do not need to rewrite the code that is common to both base and derived classes, you end up writing less code. But even more important, when you fix a bug in the base class, it automatically propagates to the derived classes. |
=== Inheritance and polymorphism === | === Inheritance and polymorphism === |
python/about_python/about_python_iv.txt · Last modified: 2019/06/21 23:09 by mithat