|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.Book
public class Book
Class for Books in the university Library
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 |
---|
public Book(java.lang.String title, int yearPublished, java.lang.String[] authors)
title
- The title of the bookyearPublished
- The year the book was publishedauthors
- The authors that wrote the bookMethod Detail |
---|
public java.lang.String getTitle()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |