interface source code
package interfaces;
interface Movable
{
void m1();
void m2();
}
public class Imple implements Movable{
public void m1()
{
System.out.println("this is m1");
}
public void m2()
{
System.out.println("this is m2");
}
}
0 comments:
Post a Comment