Class Book


  • public class Book
    extends Object
    A class that represents books.

    DO NOT MODIFY THIS CLASS.

    • Constructor Detail

      • Book

        public Book​(String t,
                    String a,
                    double r)
        Creates a new book with the given title, author, and rating
    • Method Detail

      • getTitle

        public String getTitle()
        Gets the title of the book
      • getAuthor

        public String getAuthor()
        Gets the author of the book
      • getRating

        public double getRating()
        Gets the rating of the book
      • toString

        public String toString()
        Returns this book as a String
        Overrides:
        toString in class Object