Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Book {
- String bookTitle,isbn;
- String author;
- int numOfCopies;
- public Book(String bookTitle, String author, String isbn, int numOfCopies) {
- super();
- this.bookTitle = bookTitle;
- this.author = author;
- this.isbn = isbn;
- this.numOfCopies = numOfCopies;
- }
- void display()
- {
- System.out.println("Title: " + bookTitle + " Author: " + author + " ISBN: " + isbn + " Quantity: " + numOfCopies);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement