Re: What is polymorphism?



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                  |



.