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 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. | Overloading can be broken down into Operator overloading [http://en.wikipedia.org/wiki/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= | =Operator Overloading= |
Revision as of 21:08, 1 November 2010
Overloading-Good or Bad?
Introduction
Overloading can be broken down into Operator overloading [1] 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
[2] Andrew Black, Kim. B. Bruce, James Noble. Designing the Next Educational Programming Language
[3] Operator Overloading
[4] Function Overloading