Class Book.Chapter
java.lang.Object
it.unimi.di.prog2.h14.member.Book.Chapter
- Enclosing class:
Book
A chapter of a book.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
title
The title of this chapter.
-
-
Constructor Details
-
Chapter
Creates a chapter with the given title.- Parameters:
title- the title of this chapter.- Throws:
NullPointerException- if title is null.IllegalArgumentException- if title is empty.
-
-
Method Details
-
title
-
book
-
toString
-