Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 73)
73.
In Python, what is the purpose of the
@classmethod
decorator?
Answer: Option
Explanation:
The
@classmethod
decorator is used to define a method that takes the class as its first argument, conventionally named cls
.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers