Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
How is the factory method pattern implemented with @classmethod in Python?
Auto Skip
Report Issue
A.
self() should be used instead of cls()
B.
Factory method is only implemented with metaclass
C.
@classmethod creates correct subclass instance with cls(); in inheritance cls is subclass so correct type
D.
Factory method is implemented with @staticmethod
Previous
Next