Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pl.coderslab.mvc;
- public class Book {
- private String title;
- private String author;
- private int isbn;
- public String getTitle() {
- return title;
- }
- public String getAuthor() {
- return author;
- }
- public int getIsbn() {
- return isbn;
- }
- public Book(String title, String author, int isbn) {
- super();
- this.title = title;
- this.author = author;
- this.isbn = isbn;
- }
- @Override
- public String toString() {
- return "Tytul: " + this.getTitle() + " Autor: " + this.getAuthor() + " ISBN: " + this.getIsbn();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement