Class Book.Chapter

java.lang.Object
it.unimi.di.prog2.h14.member.Book.Chapter
Enclosing class:
Book

public class Book.Chapter extends Object
A chapter of a book.
  • Field Details

    • title

      private final String title
      The title of this chapter.
  • Constructor Details

  • Method Details

    • title

      public String title()
      Returns the title of this chapter.
      Returns:
      the title.
    • book

      public Book book()
      Returns the book of which this chapter is a part.
      Returns:
      the book.
    • toString

      public String toString()
      Overrides:
      toString in class Object