Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Book {
- private String author;
- private String title;
- private double price;
- private String image;
- /** Konstruktor tworzący
- * @param author autor
- * @param title tutył książki
- * @param price cena książki
- * @param image
- */
- public Book(String author, String title, double price, String image) {
- super();
- this.author = author;
- this.title = title;
- this.price = price;
- this.image = image;
- }
- public Book() {
- super();
- this.author="";
- this.title="";
- this.price=0;
- this.image = "";
- }
- public String getImage(){
- return image;
- }
- public void setImage(String image){
- this.image = image;
- }
- public String getAuthor() {
- return author;
- }
- public void setAuthor(String author) {
- this.author = author;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public double getPrice() {
- return price;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement