Python OOP Tutorial 6: Property Decorators - Getters, Setters, and Deleters

Share this & earn $10
Corey Schafer
Published at : 21 Nov 2020
501742 views
16544
73

In this Python Object-Oriented Tutorial, we will be learning about the property decorator. The property decorator allows us to define Class methods that we can access like attributes. This allows us to implement getters, setters, and deleters. 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
PythonPropertyPython Tutorial

The Parents Who Lost 3 Children In A Car Accident Then Had Triplets | The Oprah Winfrey Show | OWN

The Parents Who Lost 3 Children In A Car Accident Then Had Triplets | The Oprah Winfrey Show | OWN

Words with Strange Pronunciation

Words with Strange Pronunciation

WHY A LOT OF BUSINESSES WILL FAIL?

WHY A LOT OF BUSINESSES WILL FAIL?

"YOU SHOULD BE PERMABANNED" | YamatosDeath1 Highlights

"YOU SHOULD BE PERMABANNED" | YamatosDeath1 Highlights

D'Vorah vs. A'Vital

D'Vorah vs. A'Vital

After We Collided - Official Teaser

After We Collided - Official Teaser

Scenario fortnite vs real life

Scenario fortnite vs real life

EXO’s D.O. Speculated To Have Enlisted In The Military Early For This Reason

EXO’s D.O. Speculated To Have Enlisted In The Military Early For This Reason

why pubg died..

why pubg died..

I Shouldn't Be Alive (Limpopo)

I Shouldn't Be Alive (Limpopo)

Air Supply - The One That You Love

Air Supply - The One That You Love

"Watch Within the Next 24 hrs" - People Have no idea What is Happening

"Watch Within the Next 24 hrs" - People Have no idea What is Happening

Those People - Trailer 1 - Englisch - UT Deutsch

Those People - Trailer 1 - Englisch - UT Deutsch

A Very Important Business Meeting

A Very Important Business Meeting

Chris Cornell - Nearly Forgot My Broken Heart (Lyric Video)

Chris Cornell - Nearly Forgot My Broken Heart (Lyric Video)

How To Separate Solutions, Mixtures & Emulsions | Chemical Tests | Chemistry | FuseSchool

How To Separate Solutions, Mixtures & Emulsions | Chemical Tests | Chemistry | FuseSchool

How to Be A Competent MAN In Dating🤴🔥#CompetentMan

How to Be A Competent MAN In Dating🤴🔥#CompetentMan

C Programming All-in-One Tutorial Series (10 HOURS!)

C Programming All-in-One Tutorial Series (10 HOURS!)

Generally Speaking: Malaysia Day Edition

Generally Speaking: Malaysia Day Edition

Celine Tam - ALL Performances America's Got Talent 2017

Celine Tam - ALL Performances America's Got Talent 2017

Air Traffic Controller - Hurry Hurry [Official Video]

Air Traffic Controller - Hurry Hurry [Official Video]

Tory Lanez CHARGED in incident w/ Megan Thee Stallion | Cardi B cusses out her fans!

Tory Lanez CHARGED in incident w/ Megan Thee Stallion | Cardi B cusses out her fans!

Sfenj Is A Popular Street Food In Africa

Sfenj Is A Popular Street Food In Africa

The Feeling (feat. Razah)

The Feeling (feat. Razah)

Building a professional-grade foundry furnace

Building a professional-grade foundry furnace

UNSCR 1325 20th Anniversary

UNSCR 1325 20th Anniversary

HOW TO INCREASE SPEED FOR FAST BOWLER | HOW TO IMPROVE SPEED IN FAST BOWLING | BOWLING TIPS | HINDI

HOW TO INCREASE SPEED FOR FAST BOWLER | HOW TO IMPROVE SPEED IN FAST BOWLING | BOWLING TIPS | HINDI

Guterres on NK-US summit: "I urge the parties to continue their dialogue"

Guterres on NK-US summit: "I urge the parties to continue their dialogue"

Picking Up Girls with Food on My Face

Picking Up Girls with Food on My Face

All CSs, PSs to scale down all in person operations within gvt

All CSs, PSs to scale down all in person operations within gvt

Institution | Meaning of institution

Institution | Meaning of institution

STOP Trying to Radically Change Your Diet (DO THIS INSTEAD)

STOP Trying to Radically Change Your Diet (DO THIS INSTEAD)

Meeting The World's Most Modified Youth | Studio 10

Meeting The World's Most Modified Youth | Studio 10

30-Minute HIIT Cardio Workout with Warm Up - No Equipment at Home | SELF

30-Minute HIIT Cardio Workout with Warm Up - No Equipment at Home | SELF

Parable of The Talents (2012)

Parable of The Talents (2012)

James Arthur - Certain Things (Audio) ft. Chasing Grace

James Arthur - Certain Things (Audio) ft. Chasing Grace

HOW TO BENEFIT FROM THE TAX SYSTEM

HOW TO BENEFIT FROM THE TAX SYSTEM

Spanish Love Songs "Self-destruction (as a sensible career choice)"

Spanish Love Songs "Self-destruction (as a sensible career choice)"

Today in History for September 11th

Today in History for September 11th

Who should be held accountable for use of performance enhancing drugs?

Who should be held accountable for use of performance enhancing drugs?

SUPER UNDERRATED SUPPORT! Complete Sucrose Guide - Artifacts, Weapons & Comps | Genshin Impact

SUPER UNDERRATED SUPPORT! Complete Sucrose Guide - Artifacts, Weapons & Comps | Genshin Impact

Как выиграть в Битве за Жизнь? [Academy of Ideas]

Как выиграть в Битве за Жизнь? [Academy of Ideas]

Four BJP MLAs Are In Contact With Me, Claims Computer Baba | ABP News

Four BJP MLAs Are In Contact With Me, Claims Computer Baba | ABP News

Paradise

Paradise

The Rare and The Valuable - Game Sack

The Rare and The Valuable - Game Sack

TUTORIAL PROFITS DESKTOP

TUTORIAL PROFITS DESKTOP

Post Malone - Circles (Red Vertical)

Post Malone - Circles (Red Vertical)

All The Way To Reno (You're Gonna Be A Star) (Official Music Video)

All The Way To Reno (You're Gonna Be A Star) (Official Music Video)

Vlad and Nikita Lost our cat

Vlad and Nikita Lost our cat