abstract class D {
public abstract void Developer();
}
class Java extends D {
@Override
public void Developer() {
System.out.println("James");
}
}
class Html extends D {
@Override
public void Developer() {
System.out.println("Tim");
}
}
public class S {
public static void main(String[] args) {
Java r = new Java();
Html k = new Html();
r.Developer();
k.Developer();
}
}
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