Geek Culture
Published in

Geek Culture

Inheritance: Getting To Grips With OOP In Python

Modeling Relationships in Code

The Python Logo from Python.org

Inheritance refers to a procedure when a new class is defined with little to no modification of an existing class. The new class is known as the derived class and it is inherited from what is known as the base class. An easier way to conceptualize this is to consider a typical parent-to-child relationship. The derived class, or…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store