This commit is contained in:
Dmitry Jemerov
2009-09-10 20:03:37 +04:00
parent 735897ab61
commit d1b91105a2
31 changed files with 5 additions and 0 deletions
@@ -0,0 +1,18 @@
interface Foreign {
void foo(Test1 test1);
}
class ForeignImpl implements Foreign {
public void foo(Test1 test1) {
test1.field++;
}
}
public abstract class Test1 {
int field;
void bar () {
new ForeignImpl().foo(this);
}
}