Two objects respond to the same message with different behaviors; the sender doesn’t have to care.
More Related Contents:
- What does it mean to “program to an interface”?
- Prefer composition over inheritance?
- Pass by reference or pass by value? [closed]
- What’s the point of OOP?
- Are circular class dependencies bad from a coding style point of view? [closed]
- Is Method Overloading considered polymorphism? [closed]
- Allen Holub wrote “You should never use get/set functions”, is he correct? [duplicate]
- Fluent Interfaces – Method Chaining
- What is the use/advantage of function overloading?
- What is a magic number, and why is it bad? [closed]
- Why should hash functions use a prime number modulus?
- What is the difference between currying and partial application?
- What is the difference between an abstract method and a virtual method?
- Vectors and polymorphism in C++
- Solving “Who owns the Zebra” programmatically?
- Do write-only properties have practical applications?
- When to use unsigned values over signed ones?
- Making a system call that returns the stdout output as a string
- When is it okay to check if a file exists?
- Why use inheritance at all? [closed]
- What is eager loading?
- Are Polymorphism , Overloading and Overriding similar concepts? [closed]
- Why is writing a closed TCP socket worse than reading one?
- If-less programming (basically without conditionals) [closed]
- How to deal with constructor over-injection in .NET
- How to calculate distance from a point to a line segment, on a sphere?
- Followup: Finding an accurate “distance” between colors
- Is bit shifting O(1) or O(n)?
- Why are leading zeroes used to represent octal numbers?
- What is differential execution?