interface c { void methodA( ){ System.out…
interface c { void methodA( ){ System.out.println(“hello”); } } class A implements c { public static void main (String[] args) { new A( ).methodA( ); } void methodA( ) { System.out.println(“goodbye”)’} }