With polymorphism, object-oriented languages allow "...different data types to be handled using a uniform interface". Ad-hoc polymorphism is when you declare multiple methods of the same name but differ by the type of an argument. For example: private static void Draw( Circle circle) { //....
Posted to
Peter Ritchie's MVP Blog
by
PeterRitchie
on
Mon, May 24 2010
Filed under:
Filed under: C#, .NET Development, Software Development, Design/Coding Guidance, DevCenterPost, OOD, Visual Studio 2010, .NET 4.0, C# 4.0, Refactoring, Code Smells