PyData Careers
20.7K subscribers
196 photos
4 videos
26 files
341 links
Python Data Science jobs, interview tips, and career insights for aspiring professionals.
Download Telegram
Question 12 (Intermediate):
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.iss.one/DataScienceQ
3