Java接口简单简介
//接口由interface修饰public interface Person {public void eat();public void sleep();}public interface Game {public void palyGame();}//接口只能通过implements实现,一个类可以实现多个接口,但必须实现每个接口中的方法public class Student implem