class studnet
{
student(String name,int age,int number)
{
this.name=name;
this.age=age;
this.number=number;
}
String name;
int age;
int number;
}
class GanB extends student
{ GanB(int number,String name,int age,String ZhiW)
{ super(number,name,age);
this.ZhiW=ZhiW;
String ZhiW;
void ShangKe()
{if(ZhiW="null")
System.out.print("六点上课");
else
System.out.print("七点上课");
}
}
class Ex
{
public static void main(String args[])
{GanB G=new GanB(01,"jone",22,"dad");
System.out.println(G.number,G.name,G.age,G.ZhiW);
}
}
瞎写写