//声明类book
public class Book
{
private string title;
private string isbn;
private string price;
//声明构造函数book
public Book(string newtitle, string newisbn)
{
title = newtitle;
isbn = newisbn;
}
//函数titleinfo
public string titleinfo
{
get
{
return"<i>书名字是:"+title+"</br>isbn"+isbn"</i>";
}
}
//利用构造函数初始化实例
Book dx=New Book("冯丽","8-111-120");
dx.price="52.9";
response.write(dx.titleinfo);
response.write("<br>价格是:"+dx.price);
}
}
那位能告诉我错在那里?
和原因,不胜感激!