class Person
{
String name;
int age;
}
class student extends Person
{
void study()
{
System.out.println("good study");
}
}
class Demo
{
public static void main(String[] args)
{
student s=new student();
s.study();
s.name=mmm;
s.age=25;
System.out.println(s.age+s.name);
}
}
显示变量mmm找不到符号。 |
|