Which method is called when an object is created and initialised?
- A __new__ then __init__
- B __init__ only
- C __call__
- D __create__
Answer
__new__ then __init__
__new__ allocates the instance and __init__ initialises it. Overriding __new__ is rarely needed outside immutable types and singletons.





