//文件名:JieKou.java
interface Achievement{
//声明一个返回float型的方法average()
}
class Person{
String name;
int age;
publlic Person(String newName,int newAge){
name = newName;
age = newAge;
}
public void introduce(){
System.out.println(“你好,我是”+name+“,今年”+age+“岁。”);
}
}
class Student //继承Person类并实现Achievement接口
{
int chinese;
int math;
int english;
public Student(String newName,int newAge){
//调用父类的构造方法Person(String newName,int newAge)
}
public void setScore(int c, int m, int e){
chinese = c; math = m; english =e;
}
//实现average()方法计算三科成绩平均分
}
class JieKou{
public static void main(String[] args){
Student s1=new Student(“”,16);
//调用s1的introduce()方法s1.setScore(80,90,80);
//显示s1的平均分
}
}