Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package resources;
- public class Item {
- //this class contains Item properties and for access item list
- private String itemID, name, type, price, desc;
- public Item(String itemID,String type,String name,String price,String desc){ //arg constructor
- this.itemID = itemID;
- this.name = name;
- this.type = type;
- this.price = price;
- this.desc = desc;
- }
- public Item(){ //default constructor
- }
- //getter method string and return current value
- public String getItemID() {
- return itemID;
- }
- public String getName() {
- return name;
- }
- public String getType() {
- return type;
- }
- public String getPrice() {
- return price;
- }
- public String getDesc() {
- return desc;
- }
- //setter method void and set new value
- public void setItemID(String itemID) {
- this.itemID = itemID;
- }
- public void setName(String name) {
- this.name = name;
- }
- public void setType(String type) {
- this.type = type;
- }
- public void setPrice(String price) {
- this.price = price;
- }
- public void setDesc(String desc) {
- this.desc = desc;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment