Playback starts YouTube’s embedded player (privacy-enhanced mode).
Everything you need to know about Classes in Python! (Object Oriented Programming Tutorial)
ChannelKeith GalliChapters
Description from the creator
Follow me instagram.com/keithgalli for more tech content!
Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/jo…
Patreon - patreon.com/keithgalli
Download Kite: kite.com/
In this video we overview the main things I think are pointing when you are starting to learn about classes & integrate them in your everyday code. In this video we cover:
- why should we use object oriented programming (oop) ?
- the basics of defining a class in python (__init__)
- class methods
- what the heck is "self"?
- Inheritance & Subclassing
- Operator overriding
A timeline is in the comments.
If there are topics you felt like I left out, let me know in the comments! I'll potentially make a follow up video to this one.
For an example of me structuring my code with classes, check out this machine learning video:youtu.be/M9Itm95JzL0
If you want to practice using classes, try rewriting the game we build in this video to use them:youtu.be/-8n91btt5d8
^(I'll update the github repo for that video with my solution to this soon)
Resources:
Github code: github.com/KeithGalli/python-classes-tutorial
Operator overloading: geeksforgeeks.org/operator-overloading-in-pytho…
---------------------
Follow me on social media!
Instagram | instagram.com/keithgalli/
Twitter | twitter.com/keithgalli
---------------------
Today’s merch!
Creator: @ChilledCow
Website: teespring.com/stores/chilledcow-shop
---------------------
Video timeline!
0:00 - Introduction
1:34 - Why use classes?
2:27 - Defining our first class in Python
6:05 - Class methods
13:53 - Passing in default keyword arguments (size of our polygons)
20:18 - Inheritance & subclassing (using the super() method)
24:43 - Class method overriding
26:06 - Plotting points with classes
28:09 - Operator overloading
---------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs
Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/jo…
Patreon - patreon.com/keithgalli
Download Kite: kite.com/
In this video we overview the main things I think are pointing when you are starting to learn about classes & integrate them in your everyday code. In this video we cover:
- why should we use object oriented programming (oop) ?
- the basics of defining a class in python (__init__)
- class methods
- what the heck is "self"?
- Inheritance & Subclassing
- Operator overriding
A timeline is in the comments.
If there are topics you felt like I left out, let me know in the comments! I'll potentially make a follow up video to this one.
For an example of me structuring my code with classes, check out this machine learning video:youtu.be/M9Itm95JzL0
If you want to practice using classes, try rewriting the game we build in this video to use them:youtu.be/-8n91btt5d8
^(I'll update the github repo for that video with my solution to this soon)
Resources:
Github code: github.com/KeithGalli/python-classes-tutorial
Operator overloading: geeksforgeeks.org/operator-overloading-in-pytho…
---------------------
Follow me on social media!
Instagram | instagram.com/keithgalli/
Twitter | twitter.com/keithgalli
---------------------
Today’s merch!
Creator: @ChilledCow
Website: teespring.com/stores/chilledcow-shop
---------------------
Video timeline!
0:00 - Introduction
1:34 - Why use classes?
2:27 - Defining our first class in Python
6:05 - Class methods
13:53 - Passing in default keyword arguments (size of our polygons)
20:18 - Inheritance & subclassing (using the super() method)
24:43 - Class method overriding
26:06 - Plotting points with classes
28:09 - Operator overloading
---------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs
About this tutorial
Keith Galli published this 33:48 video tutorial on March 25, 2020. It has been watched 194,965 times on YouTube.
- Channel
- Keith Galli
- Category
- Education
- Duration
- 33:48
- Published
- March 25, 2020
- Views
- 194,965
- Likes
- 6,250
Tags
Share
This tutorial in other languages
- FRTout ce que vous devez savoir sur les classes en Python! (Programmation orientée objet Tutorial)
- ESTodo lo que necesita saber acerca de las clases en Python! (Programación Orientada a Objetos Tutorial)
- PTTudo o que você precisa saber sobre classes em Python! (Object Oriented Programming Tutorial)
- ITTutto quello che c'è da sapere su classi in Python! (Object Oriented Programming Tutorial)
- DEAlles, was Sie brauchen, um über Klassen in Python wissen! (Object Oriented Programming Tutorial)
- NLAlles wat u moet weten over klassen in Python! (Object Oriented Programming Tutorial)
- RUВсе, что вам нужно знать о классах в Python! (Объектно-ориентированное программирование Учебник)
- PLWszystko, co musisz wiedzieć o klas w Pythonie! (Podręcznik programowania obiektowego)
- JAすべては、あなたは、Pythonのクラスについて知っておく必要があります! (オブジェクト指向プログラミングのチュートリアル)
- ARكل ما تحتاج لمعرفته حول الفصول في بيثون! (كائن برمجة دروس)
- HIआप जो कुछ भी अजगर में कक्षाएँ बारे में पता करने की जरूरत है! (ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग ट्यूटोरियल)
- IDSegala sesuatu yang Anda perlu tahu tentang Kelas di Python! (Object Oriented Programming Tutorial)