πŸ“Š Python
Q. Which of the following is used to define a class method?
  • (A) @staticmethod
  • (B) @classmethod
  • (C) @property
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) @classmethod

Explanation: The `@classmethod` decorator is used to define a class method.

Explanation by: Mr. Dubey
The `@classmethod` decorator is used to define a class method.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
45
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate