Python OOP Tutorial 1: Classes and Instances

Share this & earn $10
Corey Schafer
Published at : 04 Sep 2021
2840122 views
77674
455

In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let’s get started.

Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM
Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho
Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M
Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE
Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY
Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw

The code from this video can be found at:
https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented


✅ Support My Channel Through Patreon:
https://www.patreon.com/coreyms

✅ Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel - https://www.youtube.com/c/coreymschafer
Facebook - https://www.facebook.com/CoreyMSchafer
Twitter - https://twitter.com/CoreyMSchafer
Instagram - https://www.instagram.com/coreymschafer/

#Python

PythonClassesObject Oriented

Kid STEALS Grandma’s CREDIT CARD to buy an iPHONE 13. He Regrets it Immediately. Totally Studios.

Kid STEALS Grandma’s CREDIT CARD to buy an iPHONE 13. He Regrets it Immediately. Totally Studios.

Indicate

Indicate

Better Call Saul - Is It Acceptable?

Better Call Saul - Is It Acceptable?

Concurs Internacional de cant Montserrat Caballé

Concurs Internacional de cant Montserrat Caballé

Vlad and Niki have fun with toys - the most popular series for children

Vlad and Niki have fun with toys - the most popular series for children

The Wedding   Julie Rogers

The Wedding Julie Rogers

The Benefit Of Death - Archbishop Benson Idahosa

The Benefit Of Death - Archbishop Benson Idahosa

FY - Trip

FY - Trip

Cambridge Interview Question: Which is Larger?

Cambridge Interview Question: Which is Larger?

harvesting a High quality kois | Mud pond

harvesting a High quality kois | Mud pond

Kevin Gates - Out The Mud [Official Music Video]

Kevin Gates - Out The Mud [Official Music Video]

3v3 18 Hole Scramble | Tiger Woods Course Payne's Valley | Part 3

3v3 18 Hole Scramble | Tiger Woods Course Payne's Valley | Part 3

Excel 3D Formulas Explained (Includes a Bonus Excel Hack!)

Excel 3D Formulas Explained (Includes a Bonus Excel Hack!)

Aerosmith - Amazing (Official Music Video)

Aerosmith - Amazing (Official Music Video)

Landing Page Tutorial - 3 Most Crucial Things Every Landing Page Must Have [with 6 Examples]

Landing Page Tutorial - 3 Most Crucial Things Every Landing Page Must Have [with 6 Examples]

ΔΗΜΟΤΙΚΟ VS ΓΥΜΝΑΣΙΟ - Rap Battle

ΔΗΜΟΤΙΚΟ VS ΓΥΜΝΑΣΙΟ - Rap Battle

Paul Young - Everytime You Go Away (Official Video)

Paul Young - Everytime You Go Away (Official Video)

Mic Brushing ASMR

Mic Brushing ASMR

Holiday Shopping at J.Crew Factory Store | Men, Women, Kids Clothing, Accessories, Sweaters and More

Holiday Shopping at J.Crew Factory Store | Men, Women, Kids Clothing, Accessories, Sweaters and More

EndoSheath® System: Flexible Endoscopic Evaluation of Swallowing (FEES) Exam

EndoSheath® System: Flexible Endoscopic Evaluation of Swallowing (FEES) Exam

Marcus & Martinus - Together (Official Music Video)

Marcus & Martinus - Together (Official Music Video)

Specific Factors Model

Specific Factors Model

🚨 LIVE VIEWERS SLOT BATTLE 🚨 Visit fruityslots.com For Latest Casino Offers

🚨 LIVE VIEWERS SLOT BATTLE 🚨 Visit fruityslots.com For Latest Casino Offers

Big Earwax Removed From Man's Ear Using Ear Curette

Big Earwax Removed From Man's Ear Using Ear Curette

Barbarossa - The Load

Barbarossa - The Load

How to Sew with a Swiss Army Knife Awl / Reamer

How to Sew with a Swiss Army Knife Awl / Reamer

Types Of SQUID GAME Players

Types Of SQUID GAME Players

How To Be Taken Seriously in 2021!

How To Be Taken Seriously in 2021!

TOOL - Pneuma (Audio)

TOOL - Pneuma (Audio)

Why Wall Street May Be Underappreciating Roku

Why Wall Street May Be Underappreciating Roku

DARK POLO GANG - SPORTSWEAR (Prod. by Sick Luke)

DARK POLO GANG - SPORTSWEAR (Prod. by Sick Luke)

The Incredibles on Blu-ray: "Time to Engage" - Clip

The Incredibles on Blu-ray: "Time to Engage" - Clip

Funny Most Likely To Questions - Interactive Party Game

Funny Most Likely To Questions - Interactive Party Game

Birdy - People Help The People [Official Music Video]

Birdy - People Help The People [Official Music Video]

Subject Matters

Subject Matters

Not Easy (Lyric)

Not Easy (Lyric)

Widely Meaning

Widely Meaning

"Hey Man" Job Provides Tool Test Opportunity

"Hey Man" Job Provides Tool Test Opportunity

APPEARS TO/APPEARS TO BE/APPEARS TO HAVE  IN ENGLISH SPEAKING

APPEARS TO/APPEARS TO BE/APPEARS TO HAVE IN ENGLISH SPEAKING

Gryffin - Best Is Yet To Come (with Kyle Reynolds) [Official Video]

Gryffin - Best Is Yet To Come (with Kyle Reynolds) [Official Video]

MORTGAGE FORECLOSURES RISE as government moratorium ends and NO ONE CAN SAVE YOU | After Hours

MORTGAGE FORECLOSURES RISE as government moratorium ends and NO ONE CAN SAVE YOU | After Hours

Patrick Mahomes' Top 26 Mahoments as a Chief (so far)

Patrick Mahomes' Top 26 Mahoments as a Chief (so far)

Cardo - 2050

Cardo - 2050

Perfume (Possibly in Michigan) Animation Collaboration

Perfume (Possibly in Michigan) Animation Collaboration

Tasha Cobbs - Fill Me Up / Overflow (Medley) [Live]

Tasha Cobbs - Fill Me Up / Overflow (Medley) [Live]

Isak Danielson - Ending (lyrics)

Isak Danielson - Ending (lyrics)

Festival Of Learning - Reasons to nominate

Festival Of Learning - Reasons to nominate

Who Is Wise? - R. Yossi Bensoussan - TorahAnytime.com

Who Is Wise? - R. Yossi Bensoussan - TorahAnytime.com

Breaking Fashion News! Why this SCANDAL is causing a Worldwide Recall!

Breaking Fashion News! Why this SCANDAL is causing a Worldwide Recall!