Java Projects/Online Book Store/WEB-INF/classes/obs/Item.java
<filename>Java Projects/Online Book Store/WEB-INF/classes/obs/Item.java<gh_stars>0// Item class
package  obs;
public class Item  implements java.io.Serializable
{

   private String isbn,title;
   private int price;
   private int qty;

   public Item(String isbn,String title, int price)
   {
      this.isbn = isbn;
      this.title = title;
      this.price = price;
      this.qty = 1;
   }
   public String getIsbn()
   {
      return  isbn;
   }

   public String getTitle()
   {
      return  title;
   }

   public int getQty()
   {
      return  qty;
   }

   public void setQty(int qty)
   {   this.qty = qty; }

   public void addQty(int qty)
   {   this.qty += qty;  }

   public int getPrice()
   {
      return  price;
   }
} // end of class 
   