Re:Angular 4.0.0 Now Available
by RandyRanderson on Friday March 24, 2017 @09:02PM
(#13953471)
I think something must have a form before you can say it has many. By your definition a cloud is a polymorph instead of a random shape. If you weaken the definition that much, it takes on a lot less meaning.
Re:Angular 4.0.0 Now Available
by humanrebar on Friday March 24, 2017 @11:42PM
(#13953982)
The wikipedia page lists three types of polymorphism. Duck typing is linked in the page as another kind of polymorphism. I've seen several other types in the wild, such as link-time polymorphism.
https://en.wikipedia.org/wiki/Polymorphism_(computer_science...
The general idea is that you can have one expression dispatch to many different concrete implementations depending on the context. Virtual function calls is one approach, but C uses function pointers, C++ uses templates, dynamic languages use duck typing, several languages use message passing, and so on.
You probably mean "inheritance", which is a way to achieve polymorphism, not a synonym for it.