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

  • SEARCH
  • Home
  • 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 4124852
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:47:36+00:00 2026-05-20T23:47:36+00:00

Why is overload considered a form of polymorphism, or a way to achieve polymorphism.

  • 0

Why is overload considered a form of polymorphism, or a way to achieve polymorphism.

Polymorphism for me mean multiple form and I don’t quite see how overloading help achieving this.

  • 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-20T23:47:36+00:00Added an answer on May 20, 2026 at 11:47 pm

    Polymorphism is something that happens at runtime. In terms of OOP, it’s the practice of calling a method, and, at compile time, not knowing which object the method will be called on. The classic example is with Shapes, Circles, Squares, etc. You have a collection of Shapes, each of which is instantiated to a Circle, Square, whatever. The compiler neither knows nor cares which type of Shape you’re calling Draw or Erase on at any given time; that determination happens when the program is run.

    Method overloading happens at compile time. You have multiple methods with the same name, but different parameters. When you call one of the methods, the compiler will decide which of the overloads best matches based on the parameters you supplied.

    Why is overload considered a form of polymorphism, or a way to achieve polymorphism.

    At root, polymorphism is the ability to treat multiple types under the same API. So technically, method overloading does fall under this. In fact, according to wikipedia, method overloading is known as “ad-hoc polymorphism”, but I’ve never heard this term used in real life (not that I’m the final authority). Usually polymorphism refers exclusively to the dynamic binding of methods, as in the Shape, Circle, Square example.

    There’s also “parametric polymorphism”, though that’s usually, again by my perhaps limited experience, referred to as either generics or templates depending on the language (they are not the same; there are subtle differences between the two)

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

Sidebar

Related Questions

Is there a way to overload methods in Scala that take multiple parameter lists?
I'm trying to overload the '--' postfix operator. I have this code: class Counter
This question follows : Force a specific overload when template template Consider the following
For example, why this method Max(ref int x, ref int y) is not considered
For this overload : if CreateUser(username@email.com,pwd) , failed with error message :The e-mail address
Consider this code : TForm3 = class(TForm) public class procedure GetAConn(var res:String); overload; class
I've trying to achieve something like this: class Base { public: Base(string S) {
No overload for method 'WeightOut' takes 2 arguments My code was working before I
Is it possible to overload Session.Delete() behavior to not to perform real deleting from
I am trying to overload the subscript operator ([]) on an abstract class, 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.