Interface Example 1

interface int1 {
	int x = 10;
	void disp();
	public void disp1();
	abstract void disp2();
}
interface int2 {
	void disp3();
}
interface int3 extends int1, int2 {
	void disp4();
}
public class InterfaceDemo1 implements int1 {
	@Override
	public void disp() {	}
	@Override
	public void disp1() {	}
	@Override
	public void disp2() {	}
	public static void main(String[] args) {	}
}

Download

Interface in Java

Interface Example - 1
Interface Example - 2


Write your Comment

Name :
Email Id : [ We will not publish your email id ]
Your Comment : [ Maximum 200 chars ]
Enter Security code