public class Student
{
Backstage information = new Backstage();
void Access (String mation)
{
information.cooking(mation);
}
void SaySorry()
{
System.out.println("查无此人");
}
public static void main(String[] args)
{
Student Reception = new Student();
System.out.println("查找李敖信息如下");
Reception.Access("\n");
}
class Backstage
{
String Studentnumber;
String name;
String sex;
String place;
String phono;
Backstage()
{
this.Studentnumber = "学号";
this.name = "姓名";
this.sex = "性别";
this.place = "籍贯";
this.phono = "父母的联系方式";
}
void cooking(String mation)
{
System.out.println(Studentnumber+"26"+mation);
System.out.println(name+"李敖"+mation);
System.out.println(sex+"男"+mation);
System.out.println(place+"北京"+mation);
System.out.println(phono+"父:130xxxx1100"+mation);
}
}
}