Inheritance, polymorphism, constructors and destructors

0
Remix

Explain the difference between inheritance and polymorphism, then write a short example in which a child class overrides a method of its parent. Next, compare constructors and destructors. Follow-up: does Python have destructors, and when does one run?

AmazonTechnical phone screenLast asked Jan 2026
No answer yet. Write the first one; the best answer gets endorsed.