TechToFreedom
Published in

TechToFreedom

Understand the Property Decorator of Python Classes

Understand the Property Decorator of Python Classes
Photo by Ralph (Ravi) Kayden on Unsplash

Introduction

In object-oriented programming, each attribute of a class may have three basic methods:

  1. A getter method to get its value
  2. A setter method to set its value
  3. A deleter method to delete it

--

--

Technology gives us more and more freedom. Start learning today.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store