Function overloading: Difference between revisions

Content deleted Content added
recat
No edit summary
Line 5:
Method overloading is usually associated with [[static typing|statically-typed]] programming languages which enforce type checking in function calls. When overloading a method, you are really just making a number of different methods that happen to have the same name. It is resolved at [[compile time]] which of these methods are used.
 
Method overloadingoverloadin should not be confused with [[ad-hoc polymorphism]] or [[virtual function]]s. In those, the correct method is chosen at runtime.
 
[[Category:Object-oriented programming]]