第1个回答 2020-04-19
有如下两个接口,定义一个类实现下面两个接口.
interface
studentInfo
{
int
year=2007;
int
age();
void
showInfo();
}
interface
studentScore
{
float
total();
float
ave();
}
这个类实现上述两个接口
public
class
Student
implements
studentInfo,
studentScore
{
int
age()
{
//方法内容省略
}
void
showInfo()
{
//方法内容省略
}
float
total()
{
//方法内容省略
}
float
ave()
{
//方法内容省略
}
}