interface A {
void show();
}
interface S {
void hide();
}
class W implements A, S {
public void show() {
System.out.println("ok boss");
}
public void hide() {
System.out.println("no boss");
}
}
class L {
public static void main(String[] args) {
W r = new W();
r.show();
r.hide();
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter