PCPP1 • Practice Test 6
Free PCPP1 practice test — 10 questions with explanations. Set 6. No signup required.
You are implementing a Singleton pattern using the __new__ method. Why is it considered best practice to also define a __call__ method in the metaclass or use a decorator instead of just overriding __new__ in the base class?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.