这是我的错还是我的电脑出了问题?
这是我的错.还是电脑出了问题. 我执行的时候说我这编的有13处错误.我迷糊.大家帮我找找吧.这13处都在那啊?
我已经迷糊了.实在是找的头大了....
class StudentTest
{
public static void main(String[] args)
{
Student aSrudent = new Student();
aStudent.setName('小雨');
aStudent.setStudentNum('20030408');
System.out.println('学生的姓名是:'+aStudent.getName() + ',学号是:' + aStudent.getStudentNum());
}
}
class People
{
private String name;
public String getName()
{
return name;
}
public void setName(String strName)
{
name = strName;
}
}
class Student extends People
{
private String studentNum;
public String getStudentNum()
{
return studentNum;
}
public void setStudentNum(String strStudentNum)
{
studentNum = strStudentNum;
}
}