BaşlayınÜcretsiz Başlayın

Regulating access to an account number

A BankAccount class has been defined and used to create a checking_account object with a single parameter, account_number. A descriptor has been built for the account_number attribute using the @property decorator.

Update the account_number attribute to store a value of "91003354", then delete the attribute; observe the output. What are the possible method names and decorators that were used to produce this output when setting and deleting the account_number attribute?

Bu egzersiz

Intermediate Object-Oriented Programming in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün

Egzersizi başlat