Book - { return author; } public void setAuthor(String...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Book { private String title; private String author; private int year; private String type; public Book() { this.title = new String(); this.author = new String(); this.year= new String(); this.type = new String(); } public Book(String title, String author, int year, String type) { this.title = title; this.author = author; this.year= year; this.type = type; } public String getTitle() { return title; } public void setTitle(String title) { this.title= title; } public String getAuthor()
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { return author; } public void setAuthor(String author) { this.author= author; } public String getType() { return type; } public void setType(String type) { this.type= type; } public int getYear() { return year; } public void setYear(String Year) { this.year= year; } public void printBookInfo() { System.out.println(getTitle()+"was written by: "+getAuthor()+ "in "+getYear()+"and is a "+getType); }...
View Full Document

This note was uploaded on 02/06/2010 for the course CSE CIS3023 taught by Professor Seema during the Spring '10 term at Florida College.

Page1 / 2

Book - { return author; } public void setAuthor(String...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online