Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ Employee
Class
Employee
Chapter 11/05_class_methods.py:1–6 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
Employee:
2
a = 1
3
4
@classmethod
5
def
show(cls):
6
print(f
"The class attribute of a is {cls.a}"
)
7
8
e = Employee()
9
e.a = 45
Callers
1
05_class_methods.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected