Re: What is polymorphism?
- From: Robert Martin <unclebob@xxxxxxxxxxxxxxxx>
- Date: Thu, 8 Jun 2006 12:13:38 +0200
On 2006-06-07 14:57:17 +0200, bruno at modulix <onurb@xxxxxxxxxxx> said:
But operator overloading *is* polymorphism.
No, it's not. If I create operator+(const X&, const X&) I have not made anything polymorphic. I have just created a new overloaded function no different than if I had created a function f(const X&, const X&);
--
Robert C. Martin (Uncle Bob) | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc. | blog: www.butunclebob.com
The Agile Transition Experts | web: www.objectmentor.com
800-338-6716 |
.
- Follow-Ups:
- Re: What is polymorphism?
- From: bruno at modulix
- Re: What is polymorphism?
- References:
- What is polymorphism?
- From: Seigfried
- Re: What is polymorphism?
- From: Daniel T.
- Re: What is polymorphism?
- From: Seigfried
- Re: What is polymorphism?
- From: Daniel T.
- Re: What is polymorphism?
- From: Seigfried
- Re: What is polymorphism?
- From: Joe Van Dyk
- Re: What is polymorphism?
- From: bruno at modulix
- What is polymorphism?
- Prev by Date: Re: What is polymorphism?
- Next by Date: Re: identity...... Was: The wisdom of the object mentors
- Previous by thread: Re: What is polymorphism?
- Next by thread: Re: What is polymorphism?
- Index(es):