Question OOP-CTOR-0020
HardWhat is the output of this code?
class R:
def __init__(self):
print("init", end=" ")
def __del__(self):
print("del")
r = R()
del r
- A.
del
- B.
del init
- C.
Sign up free to see the answer and a step-by-step explanation.