Python Data Science Jobs & Interviews
18K subscribers
141 photos
4 videos
14 files
254 links
Your go-to hub for Python and Data Science—featuring questions, answers, quizzes, and interview tips to sharpen your skills and boost your career in the data-driven world.

Admin: @Hussein_Sheikho
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.me/DataScienceQ
3