Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:29:52+00:00 2026-05-26T05:29:52+00:00

Possible Duplicate: Try to describe polymorphism as easy as you can I’ve never been

  • 0

Possible Duplicate:
Try to describe polymorphism as easy as you can

I’ve never been able to fully comprehend what polymorphism is. Can someone explain, perhaps with use of an example, what it is and how it works? Just the basics.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:29:53+00:00Added an answer on May 26, 2026 at 5:29 am

    Perhaps it’s easiest to start with a non-computer analogy.

    Consider if you told somebody to “Go to the store and buy some of your favorite food for supper.”

    If you said this to a 14 year-old son, he’d probably ride his bike to the store, have to pay cash for the food, and you’d be having pizza for supper.

    If you said it to your wife, she’d probably drive to the store, use a card to pay for the food, and you might be eating chicken Cordon Bleu with Chardonnay instead.

    In a program, things work out a bit the same way: you specify something at a relatively abstract level (go to the store and get supper). Each object provides its own concrete implementation of how to implement that, and in many cases provides for some variation in exactly what it’s going to do (e.g., like the differences in favorite foods above).

    Of course, when you’re programming, most of that requires a specification that’s a lot more detailed and unambiguous. The general idea remains the same though. For the scenario above, you might have a person base class (or interface) that defined methods like go to store and select favorite food and pay for purchase. You’d then have implementations of that like adult and teenager, each of which defined its own method of going to the store, selecting favorite food, and paying for a purchase. Those methods would be polymorphic, because each implementation would have its own way of carrying out the higher-level command you gave.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Try to describe polymorphism as easy as you can What is polymorphism?
Possible Duplicate: Try to describe polymorphism as easy as you can How would you
Possible Duplicate: How do I calculate someone's age in C#? Maybe this could be
Possible Duplicate: What Ruby IDE do you prefer? I've generally been doing stuff on
Possible Duplicate: When to use try/catch blocks? Main method code entirely inside try/catch: Is
Possible Duplicate: What is the advantage of using try {} catch {} versus if
Possible Duplicate: How to center DIV in DIV? Now i try <html> <head> <title>?????????????????</title>
Possible Duplicate: Why catch and rethrow Exception in C#? I've been scouring the net
Possible Duplicate: Performance of try-catch in php While using try - catch blocks, even
Possible Duplicate: Difference between try-catch syntax for function What is the difference in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.