Preview:
interface I1

{ 

void print( ); 

} 

interface I2

{ 

void show( ); 

} 

class A implements I1,I2

{ 

public void print( )

{ 

System.out.println("Hello"); 

} 

public void show( )

{ 

System.out.println("Welcome"); 

} 

}

class Demo12

{

public static void main(String args[ ]) 

{ 

A obj = new A( ); 

obj.print( ); 

obj.show( );

} 

}
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