university
Class Book

java.lang.Object
  extended by university.Book
All Implemented Interfaces:
java.io.Serializable

public class Book
extends java.lang.Object
implements java.io.Serializable

Class for Books in the university Library

See Also:
Serialized Form

Constructor Summary
Book(java.lang.String title, int yearPublished, java.lang.String[] authors)
          Creates a new instance of Book
 
Method Summary
 java.lang.String getTitle()
          Returns The title of the book
 java.lang.String toString()
          Returns a String listing all of the books in the library
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Book

public Book(java.lang.String title,
            int yearPublished,
            java.lang.String[] authors)
Creates a new instance of Book

Parameters:
title - The title of the book
yearPublished - The year the book was published
authors - The authors that wrote the book
Method Detail

getTitle

public java.lang.String getTitle()
Returns The title of the book

Returns:
The title

toString

public java.lang.String toString()
Returns a String listing all of the books in the library

Overrides:
toString in class java.lang.Object
Returns:
A String of books