8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1993f38 commit 14b5d4dCopy full SHA for 14b5d4d
OOP/class_and_static_methods.py
@@ -14,7 +14,7 @@ def show_details(self):
14
def show_num_of_chairs(self):
15
print(Car.num_of_chairs) # Access class variable
16
17
- @classmethod
+ @classmethod # This decorator alters the functionality of our regular method to now accept the class instead of an instance of the class
18
def set_num_of_chairs(cls, num_of_chairs):
19
cls.num_of_chairs = num_of_chairs
20
0 commit comments