Question 12 (Intermediate):
What is the key difference between
A) Classmethods can modify class state, staticmethods can't
B) Staticmethods are inherited, classmethods aren't
C) Classmethods receive implicit first argument (cls), staticmethods receive no special first argument
D) Classmethods are faster to execute
#Python #OOP #ClassMethod #StaticMethod
✅ By: https://t.me/DataScienceQ
What is the key difference between
@classmethod
and @staticmethod
in Python OOP? A) Classmethods can modify class state, staticmethods can't
B) Staticmethods are inherited, classmethods aren't
C) Classmethods receive implicit first argument (cls), staticmethods receive no special first argument
D) Classmethods are faster to execute
#Python #OOP #ClassMethod #StaticMethod
✅ By: https://t.me/DataScienceQ
❤3