[求助]分析以下错误之处?
package a;
class Author{
Author(String str){
name =str;
System.out.println("Author类中输出");
System.out.println("姓名为"+name);
}
}
class FictionAuthor extends Author{
String storytype;
FictionAuthor(String name,String type){
super(name);
storytype=type;
System.out.println("从FictionAuthor类中输出");
System.out.println("类型为"+storytype);
}
}
public class TestAuthor {
TestAuthor(){
}
public static void main(String[] args){
FictionAuthor ficauthor= new FictionAuthor("Jeffrey Archer","Novel");
}
}
老是提示出错 提示name 无法解析 高手帮忙分析以下