Python Inheritance

title: Inheritance


Because Python is an opject oriented programing language, classes created in Python are able to inherit attributes and methods from other classes. For example:

class ParentClass(): pass class ChildClass(ParentClass): pass

In the very basic example, theChildClassclass will inherit fromParentClass` and use code defined under that class.

Python is also able to support multiple inheritance, so child classes can inherit from multiple classes.

More Information:

This article needs improvement. You can help improve this article. You can also write similar articles and help the community.