Re: Defining polymorphism vs overloading

jamin@aludra.usc.edu (Sugih Jamin)
Fri, 7 Sep 90 22:51:09 PDT

          From comp.compilers

Related articles
Re: Defining polymorphism vs overloading jamin@aludra.usc.edu (1990-09-07)
| List of all articles for this month |
Newsgroups: comp.compilers
From: jamin@aludra.usc.edu (Sugih Jamin)
Keywords: polymorphism
Organization: Compilers Central
Date: Fri, 7 Sep 90 22:51:09 PDT

In article <3709@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.OZ.AU (Richard A. O'Keefe) writes:
>Let me summarise that:
> DIFFERENT code for different types => OVERLOADING
> SAME code for different types => POLYMORPHISM


My prof, Larry Rowe, once said that polymorphism means the exact same code
works for different types. Whereas calling different pieces of code with the
same name depending on the type of the argument(s) is "dynamic procedure call."
Using one name for more than one piece of code is name overloading.




sugih


--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.