Re: Polymorphism vs. Overloading

ichudov@wiltel.com (Igor Chudov)
Fri, 28 Oct 1994 16:47:57 GMT

          From comp.compilers

Related articles
Polymorphism vs. overloading johnson@cs.uiuc.edu (Ralph Johnson) (1990-09-09)
Re: Polymorphism vs. overloading norman@a.cs.okstate.edu (1990-09-12)
Re: Polymorphism vs. overloading sakkinen@jyu.fi (1990-09-14)
Polymorphism vs. Overloading gdevivo@conicit.ve (1994-10-22)
Re: Polymorphism vs. Overloading jhallen@world.std.com (1994-10-22)
Polymorphism vs. Overloading nandu@cs.clemson.edu (1994-10-27)
Re: Polymorphism vs. Overloading norman@flaubert.bellcore.com (1994-10-24)
Re: Polymorphism vs. Overloading ichudov@wiltel.com (1994-10-28)
Re: Polymorphism vs. Overloading strohm@mksol.dseg.ti.com (1994-10-28)
Re: Polymorphism vs. Overloading ryer@dsd.camb.inmet.com (1994-10-28)
Re: Polymorphism vs. Overloading mac@coos.dartmouth.edu (1994-10-25)
Re: Polymorphism vs. Overloading joe@sanskrit.ho.att.com (1994-10-31)
Re: Polymorphism vs. Overloading geld@cs.sun.ac.za (1994-10-31)
Re: Polymorphism vs. Overloading ram@cs.cmu.edu (Rob MacLachlan) (1994-10-25)
[23 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: ichudov@wiltel.com (Igor Chudov)
Keywords: polymorphism
Organization: WilTel
References: 94-10-144
Date: Fri, 28 Oct 1994 16:47:57 GMT

[what's the difference between the two?]


1. They are just different and not even very similar.
2. Polymorphism is dynamic, that is, the exact function is determined at
runtime, when overloading is static and the exact function is determined
at compile time.
3. In polymorphic mechanism, member function is chosen by the type of 'this'
object, when in overloading the [member] function is chosen by the type of
parameters.
4. Overloading is just aliasing of different functions by one name.
----------------------------------------------------------------------------
Igor Chudov, Resource Solutions Intl office (918)588-2309
Systems Engineer, for WilTel. home (918)585-5862
                                                                                      E-mail: igor_chudov@wiltel.com
                                                                                      Internet: ichudov@shoe.wiltel.com
                                                                          1819 South Jackson #32-P Tulsa OK 74107
--


Post a followup to this message

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