Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Book
- {
- public String Title;
- public String Category;
- private String Author;
- private int ISBN_13;
- private String Publisher;
- private int Pages;
- private double Price;
- public String getTitle() {
- return Title;
- }
- public void setTitle(String Title) {
- this.Title = Title;
- }
- public String getCategory() {
- return Category;
- }
- public void setCategory(String Category) {
- this.Category = Category;
- }
- public String getAuthor() {
- return Author;
- }
- public void setAuthor(String Author) {
- this.Author = Author;
- }
- public int getISBN_13() {
- return ISBN_13;
- }
- public void setISBN_13(int ISBN_13) {
- this.ISBN_13 = ISBN_13;
- }
- public String getPublisher() {
- return Publisher;
- }
- public void setPublisher(String Publisher) {
- this.Publisher = Publisher;
- }
- public int getPages() {
- return Pages;
- }
- public void setPages(int Pages) {
- this.Pages = Pages;
- }
- public double getPrice() {
- return Price;
- }
- public void setPrice(double Price) {
- this.Price = Price;
- }
- public Book(String Title, String Category, String Author, int ISBN_13, String Publisher, int Pages,
- double Price)
- {
- this.Title = Title;
- this.Category = Category;
- this.Author = Author;
- this.ISBN_13 = ISBN_13;
- this.Publisher = Publisher;
- this.Pages = Pages;
- this.Price = Price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement