first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* A class that maintains information on a book.
|
||||
* This might form part of a larger application such
|
||||
* as a library system, for instance.
|
||||
*
|
||||
* @author (Insert your name here.)
|
||||
* @version (Insert today's date here.)
|
||||
*/
|
||||
class Book
|
||||
{
|
||||
// The fields.
|
||||
private String author;
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* Set the author and title fields when this object
|
||||
* is constructed.
|
||||
*/
|
||||
public Book(String bookAuthor, String bookTitle)
|
||||
{
|
||||
author = bookAuthor;
|
||||
title = bookTitle;
|
||||
}
|
||||
|
||||
// Add the methods here ...
|
||||
}
|
Reference in New Issue
Block a user