Python - Constructors and Object Initialization
Which statement best describes the order of execution when creating an object in Python?
__new__ is a special method that creates the object in memory.__init____init__ is called after __new__ to initialize the object's attributes.__new__ method creates the object, then __init__ initializes it -> Option A__new__, Initialization = __init__ = C [OK]__new__ creates, __init__ initializes objects [OK]__init__ creates the object__new__ method__init__15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions