Question OOP-CTOR-0040
EasyWhat is the output of this code?
class R:
def __del__(self):
print("bye", end=" ")
r = R()
del r
print("end")
- A.
end bye
- B.
end
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Constructors and Destructors question
What is the output of this code?
class R:
def __del__(self):
print("bye", end=" ")
r = R()
del r
print("end")
end bye
end
Sign up free to see the answer and a step-by-step explanation.
bye end
bye