|
Please have a look on this code:
public class Test implements Sample1,Sample2{
public static void main(String args[]){
System.out.println("public static void main");
Test t=new Test();
t.jen();
}
public void jen() {
System.out.println("Success");
}
}
Interface 1:
ublic interface Sample1 {
public void jen();
}
Interface:2
public interface Sample2 {
public void jen();
}
|