This is a presentation of Chapter 10 of the "Introduction to Python & Programming" book that accompanies the coding course in the Bachelor program at WHU - Otto Beisheim School of Management in Germany in the spring semester 2020.
In this video, I talk about:
- How understanding object-orientation puts everything together
- How classes are really just blueprints for objects
- How classes are like the built-in constructors and that new objects can be instantiated by calling the class
- How classes teach Python the semantics of a problem domain
- How classes allow the separation of data and behavior
- How classes enable the re-use of code
- How instance methods are just functions that are called with the object on which they are bound as the first argument
- How special methods can be used to make a custom object behave like a sequence
- How special methods can be used to overload how operator work when used with a custom object as the operand
- Examples introduced: Matrix and Vector classes that mimic numpy's ndarray type
PYTHON BOOK
The lecture is based on the free book "Introduction to Python & Programming".
Get it on GitHub: https://github.com/webartifex/intro-t...
PYTHON LECTURES
Find all the video recordings of the book in this playlist: • Intro to Python & Programming (Spring...
SUBSCRIBE
If you like the way I teach and talk about programming and data science, subscribe to this channel.
The videos focus on coding courses and tutorials aimed at managers and students of business administration, enabling them to make better decisions with analyses done in code.
INSTRUCTOR
Alexander Hess, PhD Student
WHU - Otto Beisheim School of Management, Vallendar, Germany
CONTACT
GitHub: https://github.com/webartifex
LinkedIn: / webartifex
XING: https://xing.to/webartifex
Facebook: / webartifex
Instagram: / webartifex
Website: http://www.webartifex.biz
YouTube: / webartifex
wa-vid-018