MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-Python-Course / show

Method show

Chapter 11/05_class_methods.py:5–6  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

3
4 @classmethod
5 def show(cls):
6 print(f"The class attribute of a is {cls.a}")
7
8e = Employee()
9e.a = 45

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected