/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package windowtest; /** * * @author jcmt */ public class Bookdata { int year; double cost; String title; public Bookdata() { year = 2013; cost = 9.99; title = "Great Expectations"; } public Bookdata(int y, double c, String t) { year = y; cost = c; title = t; } public Bookdata(Bookdata t) { year = t.year; cost = t.cost; title = t.title; } public int getYear() { return year; } public void setYear(int year) { this.year = year; } public double getCost() { return cost; } public void setCost(double cost) { this.cost = cost; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } }