What is polymorphism?

Author Topic: What is polymorphism?  (Read 1511 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • Hot Shaper
What is polymorphism?
« on: 01-05-2017, 03:27:29 »
Poly stands for “many” and morph stands for “form”.   It simply means the ability of an object to take more then one form.


Offline traveloweb

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 4
  • Karma: 0
Re: What is polymorphism?
« Reply #1 on: 01-10-2018, 03:29:45 »
In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form

Offline SeoDezin

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 10
  • Posts: 154
  • Karma: 1
  • Gender: Male
    • http://cognitive46.wordpress.com/
Re: What is polymorphism?
« Reply #2 on: 02-20-2018, 08:07:24 »
Polymorphism is an object- oriented programming concept that refers to the ability of a variable , function or object to take on multiple forms .A language that features polymorphism allows developers to program in the general rather than program in the specific.

Offline Lauraponting

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
Re: What is polymorphism?
« Reply #3 on: 04-17-2018, 22:17:44 »
Polymorphism in Java:
Polymorphism in java is a mechanism  which we can perform a single action by different ways.
 "poly" means many and "morphs" means forms.
There are two types of polymorphism in java: compile time polymorphism and runtime polymorphism.
We can perform polymorphism in java by method overloading and method overriding.
If you overload static method in java, it is the example of compile time polymorphism.
Runtime polymorphism or Dynamic Method Dispatch is a process in which a call to an overridden method is resolved at runtime rather than compile-time.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
664 Views
Last post 02-13-2016, 00:40:01
by chinmay.sahoo