[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


...advantage of Polymorphism?Anything to do with...

<< Back to general questions

Question by Sudeesh
Submitted on 3/4/2004
Related FAQ: N/A
Rating: Rate this question: Vote
What is the advantage of Polymorphism?Anything to do with the memory?


Answer by Gus
Submitted on 8/24/2004
Rating: Not yet rated Rate this answer: Vote
Clarity.

From clarity springs maintainability.

In short, it keeps you from having to look up silly things like "OK, now what's the name of the subroutine that multiplies two 5 by 5 matrices together?  Is that matmult5x5x5()?  It also keeps your function namespace less cluttered (on the programmer side, not the implementation side).

 

Answer by kosco
Submitted on 9/28/2004
Rating: Not yet rated Rate this answer: Vote




                                 |-- coercion
                 |-- ad hoc    --|
                                 |-- overloading
  polymorphism --|
                                 |-- parametric
                 |-- universal --|
                                 |-- inclusion


 

Answer by tom
Submitted on 10/6/2004
Rating: Not yet rated Rate this answer: Vote
wefasfaf

 

Answer by yo mama
Submitted on 10/22/2004
Rating: Not yet rated Rate this answer: Vote
Uh you mean like, capitillas and pasgetti?

 

Answer by idiot
Submitted on 11/9/2004
Rating: Not yet rated Rate this answer: Vote
dude polymorphism has everyhting to do with the memory.. update ur system and then shove it in ur dogs.

 

Answer by [skorpion]
Submitted on 6/26/2005
Rating: Not yet rated Rate this answer: Vote
Its called genetics, and no. A polymorphism is a mutation in a gene.

 

Answer by moon
Submitted on 6/26/2005
Rating: Not yet rated Rate this answer: Vote
nothing, nope

 

Answer by Ohm0
Submitted on 6/26/2005
Rating: Not yet rated Rate this answer: Vote
-Polymorphic variables help with memory use, in that a single variable can be used to store multiple data types (integers, strings, etc), rather than declaring a different variable for each data format to be used.
-Polymorphic functions help with memory use in the same way; you use a single function to operate on multiple data types, instead of having multiple different functions, each specifically for a different data type.

The Euphoria language is a funny sort of polymorphic: data is stored ONLY as numberic values!  If you make a variable called "Grade" and assign it to "A", the computer stores a value of 65; the output depends on whether the output function used is a string output, or numeric output.  In this (unique?) case, the input and output methods are the parts that are polymorphic - the side the humans see can take whichever shape the human wants to see, but the computer only works the one way.

 

Answer by Koschei
Submitted on 6/27/2005
Rating: Not yet rated Rate this answer: Vote
D&D does NOT translate to real life.

 

Answer by Jimmy
Submitted on 7/25/2005
Rating: Not yet rated Rate this answer: Vote
Polymorphs are the creation of man... they take your emotions and feed on them.  Memory of the state before the feeding is lost, and you then must live on without the benefit of the lost emotion.

 

Answer by suresh
Submitted on 3/7/2006
Rating: Not yet rated Rate this answer: Vote
to doing many task at same time

 

Answer by Ravishankar
Submitted on 3/7/2006
Rating: Not yet rated Rate this answer: Vote
Polymorphism is nothing but a mechanism which hides the data and behaviour of perticular class , so all objects are just access and use the result of the behaviour but they have no rights to see what is behind. this is the mainly usufulness of polymophism upto my knowledge

 

Answer by Kamruzzaman
Submitted on 6/3/2006
Rating: Not yet rated Rate this answer: Vote
Yes, polymorphism affect the solubility and dissolution properties.

 

Answer by BIG DADDY
Submitted on 7/24/2006
Rating: Not yet rated Rate this answer: Vote
I WAS GOING TO TELL YOU BUT I CANT REMEMBER

 

Answer by radhika
Submitted on 12/23/2006
Rating: Not yet rated Rate this answer: Vote
sir i dont know plz tell me

 

Answer by xyz
Submitted on 1/2/2007
Rating: Not yet rated Rate this answer: Vote
Dynamic runtime binding

 

Answer by christinamarie
Submitted on 5/26/2007
Rating: Not yet rated Rate this answer: Vote
how long after a kittens birth does it take for them to open their eyes

 

Answer by PETRA
Submitted on 6/9/2007
Rating: Not yet rated Rate this answer: Vote
WWW.PETRA ONLY.COM

 

Answer by Emerald
Submitted on 7/9/2007
Rating: Not yet rated Rate this answer: Vote
It depends. Polymorphism is usually evolutionary, though there isn't always a distinct advantage. It exists mostly to avoid viruses from wiping out an entire species in one go, since each morph has slightly different traits.

 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to general questions


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.