Method Overloading
A class can contain multiple methods that have the same name but different signatures
class C {
int m(int i){
return i+1;
}
double m(double f){
return f+2;
}
}
Previous slide
Next slide
Back to first slide
View graphic version