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

Understanding class definitions

Objects and classes consist of attributes (storing the state) and methods (storing the behavior).

Before you get to writing your own classes, you need to understand the structure of a class and how attributes in the class definition relate to attributes in an object. In this exercise, you have a class with one method and one attribute, as well as an object of that class.

Bu egzersiz

Introduction to 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