PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Amazon

Explain inheritance, polymorphism, constructors, destructors

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of object-oriented programming concepts—specifically inheritance, polymorphism, constructors, and destructors—and competency in explaining class relationships, method overriding, and object lifecycle semantics.

  • easy
  • Amazon
  • Software Engineering Fundamentals
  • Software Engineer

Explain inheritance, polymorphism, constructors, destructors

Company: Amazon

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: easy

Interview Round: Technical Screen

## OOP fundamentals Answer the following concept questions and provide a small example where requested: 1. **Inheritance vs. polymorphism** - Explain what *inheritance* is and what *polymorphism* is. - Give an example showing a child class **overriding** a parent class method. 2. **Constructor vs. destructor** - Explain the purpose of constructors and destructors and when they are executed. - Follow-up: **Does Python have a destructor?** If so, what is it, and what caveats exist?

Quick Answer: This question evaluates understanding of object-oriented programming concepts—specifically inheritance, polymorphism, constructors, and destructors—and competency in explaining class relationships, method overriding, and object lifecycle semantics.

Related Interview Questions

  • Debug Watch List Movie Operations - Amazon (medium)
  • Design an advertiser metrics tracking platform - Amazon (medium)
  • Implement Review Content Moderation - Amazon (medium)
  • Validate AI-Generated Code Safely - Amazon (medium)
  • Fix the Password Reset Workflow - Amazon (medium)
|Home/Software Engineering Fundamentals/Amazon

Explain inheritance, polymorphism, constructors, destructors

Amazon logo
Amazon
Jan 22, 2026, 12:00 AM
easySoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
5
0
Loading...

OOP fundamentals

Answer the following concept questions and provide a small example where requested:

  1. Inheritance vs. polymorphism
    • Explain what inheritance is and what polymorphism is.
    • Give an example showing a child class overriding a parent class method.
  2. Constructor vs. destructor
    • Explain the purpose of constructors and destructors and when they are executed.
    • Follow-up: Does Python have a destructor? If so, what is it, and what caveats exist?
Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Amazon•More Software Engineer•Amazon Software Engineer•Amazon Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.