No object-oriented programming language would be worth looking at or using if it didn’t support inheritance. Invented in 1969 for Simula, inheritance is the mechanism of deriving new classes from existing ones. By doing this, we get a hierarchy of classes. Python not only supports inheritance, but multiple inheritances as well.
In most class-based, object-oriented languages, an object created through inheritance (a “child object”) acquires all of the properties and behaviors of the parent object (though there are exceptions in some languages).
Inheritance allows programmers to create classes that are built upon existing classes, and this enables a class created through inheritance to inherit the attributes and methods of the parent class. This means that inheritance supports code reusability. The methods are inherited by the subclass. The relationships of objects or classes through inheritance give rise to a directed graph.
Inheritance may seem complex. But there are really only three ways to think about it. Reuven and Paul will explore these ideas, through the lens of a modern Python editor that puts the ideas to work. And of course, engage with the audience’s ideas and questions.
Date: May 26, 2021
Time: 5:00 pm – 6:00 pm CEST
About the presenter:
Reuven Lerner https://twitter.com/reuvenmlerner
Reuven Lerner is a full-time Python trainer. In a given year, he teaches courses at companies in the United States, Europe, Israel, India, and China, as well as to people around the world via his online courses.
Reuven created one of the first 100 websites in the world just after graduating from MIT’s Computer Science Department. Reuven’s monthly column appeared in the Linux Journal from 1996 until the magazine’s demise in 2019.
His most recent book is Python Workout (Manning), a collection of hands-on Python exercises with extensive explanations. Reuven’s free, weekly Better Developers newsletter, about Python and related topics, is read by over 20,000 developers around the globe.
Reuven has a bachelor’s degree in computer science and engineering from MIT and a PhD in learning sciences from Northwestern University. He lives in Modi’in, Israel, with his wife and three children.