CSC/ECE 517 Fall 2010/ch5 5a KR: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
=Introduction= | =Introduction= | ||
Overloading can be broken down into | Overloading can be broken down into | ||
[http://en.wikipedia.org/wiki/Operator_overloading/ Operator Overloading] and | |||
[http://en.wikipedia.org/wiki/Function_overloading/ Method/Function Overloading]. Method overloading can be considered to be a type of polymorphism in which two methods with the same name are used to perform different functions according to the parameters passed to the methods. Operator overloading can be considered to be a type a polymorphism in which a particular operator is defined to perform another action. | |||
=Operator Overloading= | =Operator Overloading= |
Revision as of 21:10, 1 November 2010
Overloading-Good or Bad?
Introduction
Overloading can be broken down into Operator Overloading and Method/Function Overloading. Method overloading can be considered to be a type of polymorphism in which two methods with the same name are used to perform different functions according to the parameters passed to the methods. Operator overloading can be considered to be a type a polymorphism in which a particular operator is defined to perform another action.
Operator Overloading
References
[1] Andrew Black, Kim. B. Bruce, James Noble. Designing the Next Educational Programming Language
[2] Operator Overloading
[3] Function Overloading