Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by daan on 1/13/2017.
- */
- public class Boek {
- private int ISBNnumber;
- private String title;
- private int amountofPages;
- private String author;
- public Boek(int ISBNnumber, String title, int amountofPages, String author){
- this.ISBNnumber = ISBNnumber;
- this.title = title;
- this.amountofPages = amountofPages;
- this.author = author;
- }
- public int getISBNnumber() {
- return ISBNnumber;
- }
- public void setISBNnumber(int ISBNnumber) {
- this.ISBNnumber = ISBNnumber;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public int getAmountofPages() {
- return amountofPages;
- }
- public void setAmountofPages(int amountofPages) {
- this.amountofPages = amountofPages;
- }
- public String getAuthor() {
- return author;
- }
- public void setAuthor(String author) {
- this.author = author;
- }
- @Override
- public String toString(){
- return "Book " + getTitle() + " has " + amountofPages + " pages and has been written by " + author + " with ISBN number: " + getISBNnumber();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement