回复 2 楼 love 云彩
interface Singer {public void sing ();
}
interface Painter {
public void painter ();
}
class Student implements Singer {
private String name ;
Student (String name) {
this.name = name ;
}
public void sing () {
System.out.println ("Student is singing!");
}
}
interface Teacher implements Singer,Painter {
public void sing () {
System.out.println ("Teacher is singing!");
}
}
public class PracticeInterface {
public static void main (String[] args) {
}
}