public class Book
{
private String authorName;
private String title;
private int numberOfCopiesOwned;
private int numberOfCopiesAvailable;
// Constructor for objects of class Book
public Book()
{
// nothing to do... instance variables are automatically set to null
}

public Book(String newBookTitle, String newAuthorName, int theNumberOfCopies)
{
title = newBookTitle;
authorName = newAuthorName;
numberOfCopiesAvailable = theNumberOfCopies;
numberOfCopiesOwned = theNumberOfCopies;
}
// Single book check out.
public boolean checkOut()
{
if(numberOfCopiesAvailable <= 0)
return false;
else{
numberOfCopiesAvailable--;
return true;
}
}
}