文件名称:LibraryBook
介绍说明--下载内容均来自于网络,请自行研究使用
这个问题涉及到一个LibraryBook类的图书馆书籍的设计和实现。
a)确定每本图书馆书需要维护哪些信息。
b)LibraryBook类的唯一复杂操作是参与借款过程的操作。
c)现在,在上一个问题中的五个操作中的每一个的设计算法。
d)最后,实现LibraryBook类。在编写方法之前,声明任何实例变量,包括问题的第一部分的变量和您刚刚设计的方法中需要的任何实例变量。之后,通过将算法翻译成Java来实现这些方法。最后,实现一个构造函数的方法,它应该采用与您在问题的第一部分中标识的每个数据相对应的参数,并应使用这些参数初始化该数据。(This question involves the design and implementation of a LibraryBook class of objects representing library books.
a) Decide what information needs to be maintained about each library book. At this stage, do not worry about information needed to support operations on library books, but only about information that to represent the books in the library. Indicate the type of each piece of information (you should not need to use types other than the basic types and String). You should assume there is only one copy of each book.
b) The only complex operations of the LibraryBook class are those involved in the borrowing process. These are as follows: reserve: Mark the books as being reserved.)
a)确定每本图书馆书需要维护哪些信息。
b)LibraryBook类的唯一复杂操作是参与借款过程的操作。
c)现在,在上一个问题中的五个操作中的每一个的设计算法。
d)最后,实现LibraryBook类。在编写方法之前,声明任何实例变量,包括问题的第一部分的变量和您刚刚设计的方法中需要的任何实例变量。之后,通过将算法翻译成Java来实现这些方法。最后,实现一个构造函数的方法,它应该采用与您在问题的第一部分中标识的每个数据相对应的参数,并应使用这些参数初始化该数据。(This question involves the design and implementation of a LibraryBook class of objects representing library books.
a) Decide what information needs to be maintained about each library book. At this stage, do not worry about information needed to support operations on library books, but only about information that to represent the books in the library. Indicate the type of each piece of information (you should not need to use types other than the basic types and String). You should assume there is only one copy of each book.
b) The only complex operations of the LibraryBook class are those involved in the borrowing process. These are as follows: reserve: Mark the books as being reserved.)
相关搜索: 图书馆管理作业
(系统自动生成,下载前可以参看下载内容)
下载文件列表
LibraryBook.java