SarkariResultess QA Bank

Class method बनाने के लिए कौन सा decorator है? — interview में इसका सही जवाब क्या है?

Other 0 Views Verified
Class method बनाने के लिए कौन सा decorator है? — interview में इसका सही जवाब क्या है?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

@method(class)

@method(class)
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

@classmethod

@classmethod
Additional Explanation
@classmethod पहला argument class (cls) को देता है।
Verified

@class

@class
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

@staticmethodmethod

@staticmethodmethod
Additional Explanation
यह विकल्प सही समाधान नहीं है।