What Is the Purpose of This Book?

本书介绍如何使用ASP.NET和Visual Studio.NET构建Web业务应用,通过示例展示ASP.NET实际应用,强调编程标准与实践。采用循序渐进方式,从Visual Basic.NET语言入门到中级主题。本书并非参考手册,聚焦初学者开启ASP.NET和Web开发所需知识。
The purpose of this book is to show you how to use ASP.NET and Visual Studio
.NET to build real-world business applications on the Web. We will show the
practical applications of ASP.NET by illustrating how to build a
client/server application using Web Forms and Web Services. Emphasis will
be on good programming standards and practices. You will be taken from an
introduction of the Visual Basic .NET language to intermediate topics
through a step-by-step approach. This lets you try out the practices being
set forth in this book.

What This Book Isn't
Given the challenge of writing about a huge technology like Microsoft's
.NET platform, we made specific decisions about what and what not to cover.
With that in mind, this book is most definitely not a reference manual, and
it is not a rehash of the Microsoft documentation. It is, however, a great
place to start digging into the features and power of ASP.NET. The book is
also not a resource on advanced features梱ou'll find many other books that
explain the things you'll want to dig into after you've learned the basics.
We deliberately avoided topics that you don't need to know right away.
Instead, we focused on topics you'll need right away to begin your
exploration of ASP.NET and Web development using the .NET platform.
use java language ,In this project you need to write a book lending system for a Library. The system has different roles for registered users. There are two types of user roles: borrower and lender. Write an IUser interface for library users, with the following UML specification: +----------------------------------+ | <<interface>> | | IUser | +----------------------------------+ | + getName(): String | | + getBook(): int | | + moreBook(int number): void | +----------------------------------+ and a User class that implements IUser and has the following UML specification: +-----------------------------------+ | User | +-----------------------------------+ | - name: String | | - book: int | +-----------------------------------+ | + User(String name, int book) | | + getName(): String | | + getBook(): int | | # setBook(int book): void | | + moreBook(int number): void | | + testUser(): void | +-----------------------------------+ The name instance variable indicates the user name. The book instance variable indicates the number of books borrowed by the user. The setBook method changes the number of books borrowed by the user. The setBook method is protected, not public. This means that only subclasses of the User class can use the setBook method. All the other classes in the system cannot use the setBook method, so they cannot change the number of books borrowed by a user. The purpose of the moreBook method is to increase the number of books borrowed or lent by the user (depending on what kind of user it is) by the number given as argument to the method. The moreBook method of the User class is abstract, since we do not know what kind of role the user is (a borrower borrows books from other users and a lender lend books to other users). Also add to your program a Test class to test your User class. public class Test { public static void main(String[] args) { User.testUser(); } }
05-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值