15 lines
216 B
Plaintext
15 lines
216 B
Plaintext
|
import java.lang.Object;
|
||
|
|
||
|
interface Visitor {
|
||
|
public void visit(Object obj);
|
||
|
public void visit(ClassA a);
|
||
|
}
|
||
|
|
||
|
class ClassA {
|
||
|
void accept(Visitor v) {
|
||
|
v.visit(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class Bug332 {
|
||
|
}
|