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 ...
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
Project: book-exercise
|
||||
Authors: To be set.
|
||||
|
||||
This project is part of the material for the book
|
||||
|
||||
Objects First with Java - A Practical Introduction using BlueJ
|
||||
Sixth edition
|
||||
David J. Barnes and Michael Kölling
|
||||
Pearson Education, 2016
|
||||
|
||||
It is discussed in chapter 2.
|
||||
|
||||
Purpose of project: This project forms the basis of a set of exercises
|
||||
that can be found in Chapter 2.
|
||||
How to start this project: Create one or more Book instances.
|
||||
|
||||
USER INSTRUCTIONS: Complete the exercises in Chapter 2.
|
@@ -0,0 +1,29 @@
|
||||
#BlueJ package file
|
||||
objectbench.height=100
|
||||
objectbench.width=363
|
||||
package.editor.height=400
|
||||
package.editor.width=560
|
||||
package.editor.x=70
|
||||
package.editor.y=80
|
||||
package.numDependencies=0
|
||||
package.numTargets=1
|
||||
package.showExtends=true
|
||||
package.showUses=true
|
||||
project.charset=UTF-8
|
||||
readme.editor.height=700
|
||||
readme.editor.width=900
|
||||
readme.editor.x=53
|
||||
readme.editor.y=23
|
||||
target1.editor.height=700
|
||||
target1.editor.width=900
|
||||
target1.editor.x=70
|
||||
target1.editor.y=50
|
||||
target1.height=60
|
||||
target1.name=Book
|
||||
target1.naviview.expanded=true
|
||||
target1.showInterface=false
|
||||
target1.type=ClassTarget
|
||||
target1.typeParameters=
|
||||
target1.width=110
|
||||
target1.x=150
|
||||
target1.y=120
|
Reference in New Issue
Block a user