Results 1 to 6 of 6

Thread: What does polymorphism mean in OOP?

  1. #1
    Join Date
    Dec 2009
    Posts
    38

    What does polymorphism mean in OOP?

    Hello friend,

    I just completed the C programming and going to start the object oriented programming. Before that I want to be aware the basic concepts of the OOP. And as per my knowledge the 'Polymorphism' is very important concept of the OOP. If you have sound knowledge about the 'Polymorphism' concept in Object oriented programming, then please let me know that. I would appropriate your any help.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: What does polymorphism mean in OOP?

    The term polymorphism is oftenly used in OOP. But do not stop at that. To better understand, just to analyze the structure of the word: poly as many and morphism as shape. The polymorphism addresses the ability of the object to have several form. This ability derives directly from the principle of inheritance earlier. Indeed, as we already knows, an object will inherit fields and methods of its ancestors. But something always keeps the ability to redefine a method to rewrite it, or complete.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What does polymorphism mean in OOP?

    The name of polymorphism comes from Greek and means "that can take several forms". The concept of polymorphism should not be confused with that of multiple inheritance. Indeed, multiple inheritance - not supported by the pascal standard which allows an object to inherit members (fields and methods) of several objects at once, while the polymorphism lies in the ability of an object to change its own behavior and that of his descendants during execution.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: What does polymorphism mean in OOP?

    Hi,

    The 'polymorphism' is one of the key concepts OOP. While the legacy for classes (and their hierarchy), polymorphism is related methods of objects. The 'polymorphism' categorized into following types:
    • Ad hoc polymorphism
    • Parametric polymorphism
    • The inheritance polymorphism

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What does polymorphism mean in OOP?

    Parametric polymorphism sometimes referred as generics, represents the possibility to define several functions the same name but with different parameters (number and / or type). This type of polymorphism makes it possible the automatic choice of the correct method to adopt according type of data passed as parameter. Parametric polymorphism is provided in Python, but can circumvent the problem by testing the type parameters

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    Re: What does polymorphism mean in OOP?

    The functionality for to redefining a method in OOP classes for inheriting from a base class called polymorphism. It is then possible to call the method of an object without worrying about its intrinsic type, it is the inheritance polymorphism. This allows to ignore the details of special classes a family object, by hiding a common interface (which is the base class). The ad hoc polymorphism allows to define operators whose use will be different depending on the type parameters they are gone.

Similar Threads

  1. Runtime polymorphism Vs Compile time polymorphism
    By Owen Fernandes in forum Software Development
    Replies: 4
    Last Post: 03-02-2010, 11:06 AM
  2. Polymorphism VS Inheritance
    By Taylor D in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 10:12 AM
  3. Is java supports polymorphism?
    By beelow in forum Software Development
    Replies: 3
    Last Post: 19-11-2009, 11:30 AM
  4. Function overloading with polymorphism
    By Mega Member in forum Software Development
    Replies: 3
    Last Post: 02-10-2009, 03:35 PM
  5. Polymorphism in SQL database
    By cobra2008 in forum Software Development
    Replies: 2
    Last Post: 04-04-2009, 09:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,961,063.89272 seconds with 16 queries