same_method_name_different_classes.mj 183 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
class Foo {
    public void bar() {}
    public static void main(String[] args) {
        (new Foo()).bar();
        (new Bar()).bar();
    }
}
class Bar {
    public void bar() {}
}