interface A
{
void S();
void P();
default void L()
{
System.out.println("hii baby");
}
}
class D implements A
{
public void S()
{
System.out.println("class D");
}
public void P()
{
System.out.println("class P");
}
}
class p
{
public static void main(String[] args)
{
D r= new D();
r.S();
r.P();
r.L();
}
}
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