September 2018
Intermediate to advanced
426 pages
10h 46m
English
In this section, we will review Object-Oriented Programming and inheritance in Python.
Object-Oriented programming is one of the paradigms most used today. While it fits a lot of situations that we can find in day-to-day life, in Python, we can combine it with other paradigms to get the best out of the language and increase our productivity while maintaining an optimal code design.
Python is an object-oriented language and allows you to define classes and instantiate objects from these definitions. A block headed by a class statement is a class definition. The functions that are defined in the block are its methods, also called member functions.
The way Python creates objects is with the class keyword. A Python ...