Function Overloading
A behavior can be defined in many ways. For example, consider the function Accelerate.
Accelerate (GasPedal);
Accelerate (CruiseControl, Resume, Coast, SetAccl);
Depending the format of the user-request, different Accelerate will be activated.
Previous slide
Next slide
Back to first slide
View graphic version