Python Programming - Encapsulation - Discussion
Discussion Forum : Encapsulation - General Questions (Q.No. 24)
24.
What is the role of the
@classmethod
decorator in encapsulation?
Answer: Option
Explanation:
The
@classmethod
decorator is used in encapsulation to provide a class method for a class, allowing functionality related to the class.
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