Method/constr. overloading
Java:
class C {
int f() { ... }
int f(int i) { ... }
int f(int i, int arg)
{ ... }
}
Python:
class C:
def f(i=0, arg=None):
...
Previous slide
Next slide
Back to first slide
View graphic version