Python OOP Tutorial : Class & Inheritance

2,892 views · Published 26 November 2018 · 4:37 · Indexed 19 October 2026

Channel: Jayanam · 2018 · Education

Watch on YouTube

In this Python tutorial for beginners I show how to create a class and derived a subclass from it, which is in OOP called inheritance.

After that I create an instance of the derived class (Rectangle) and I also added an __str__ method to have a string reperesentation of the class with that we are able to print out the data of the class in a human-readable form.

See my social profiles here
G+: https://plus.google.com/+JayAnAm
Twitter: https://twitter.com/jayanamgames
Facebook: https://www.facebook.com/jayanamgames
Patreon: https://www.patreon.com/jayanam

Production Music courtesy of Epidemic Sound: http://www.epidemicsound.com

#python
#pythontutorial
#oop

More from this channel