SHARE
TWEET

Untitled

a guest Feb 6th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Book {
  2.  
  3.         String title;
  4.         String author;
  5.         String category;
  6.    
  7.        
  8.         public Book(String title, String author, String category) {
  9.            
  10.         }
  11.  
  12.         public String getCategory() {
  13.             return category;
  14.         }
  15.  
  16.         public String toString() {
  17.             return title + " by " + author +", " + "category:" + category;
  18.         }
  19.    
  20.    
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top