Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.44 KB | None | 0 0
  1. public class Book
  2. {
  3.        
  4.         public String Title;
  5.         public String Category;
  6.         private String Author;
  7.         private int ISBN_13;
  8.         private String Publisher;
  9.         private int Pages;
  10.         private double Price;
  11.        
  12.        
  13.         public String getTitle() {
  14.             return Title;
  15.         }
  16.  
  17.         public void setTitle(String Title) {
  18.             this.Title = Title;
  19.         }
  20.  
  21.         public String getCategory() {
  22.             return Category;
  23.         }
  24.  
  25.         public void setCategory(String Category) {
  26.             this.Category = Category;
  27.         }
  28.  
  29.         public String getAuthor() {
  30.             return Author;
  31.         }
  32.  
  33.         public void setAuthor(String Author) {
  34.             this.Author = Author;
  35.         }
  36.  
  37.         public int getISBN_13() {
  38.             return ISBN_13;
  39.         }
  40.  
  41.         public void setISBN_13(int ISBN_13) {
  42.             this.ISBN_13 = ISBN_13;
  43.         }
  44.  
  45.         public String getPublisher() {
  46.             return Publisher;
  47.         }
  48.  
  49.         public void setPublisher(String Publisher) {
  50.             this.Publisher = Publisher;
  51.         }
  52.  
  53.         public int getPages() {
  54.             return Pages;
  55.         }
  56.  
  57.         public void setPages(int Pages) {
  58.             this.Pages = Pages;
  59.         }
  60.  
  61.         public double getPrice() {
  62.             return Price;
  63.         }
  64.  
  65.         public void setPrice(double Price) {
  66.             this.Price = Price;
  67.         }
  68.        
  69.         public Book(String Title, String Category, String Author, int ISBN_13, String Publisher, int Pages,
  70.                 double Price)
  71.         {
  72.             this.Title = Title;
  73.             this.Category = Category;
  74.             this.Author = Author;
  75.             this.ISBN_13 = ISBN_13;
  76.             this.Publisher = Publisher;
  77.             this.Pages = Pages;
  78.             this.Price = Price;
  79.         }
  80.  
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement