/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/CSIA14829 - Jane April 6th/src/csia14829/Item.java
 1 package csia14829;
 2 
 3 /*
 4  * To change this license header, choose License Headers in Project Properties.
 5  * To change this template file, choose Tools | Templates
 6  * and open the template in the editor.
 7  */
 8 
 9 /**
10  *
11  * @author 14829
12  */
13 // this is a superclass which contains represent the commonalities between all items
14 // and allows them to be handled in the same data structure.
15 public class Item {
16     private String name = "not set yet";
17     private String itemType = "not set yet";
18     public String date = "not set yet";
19     public boolean claimedStatus;
20     
21     public Item(){
22         
23     }
24     
25     public Item(String name, String itemType, String date, boolean claimedStatus){
26         this.name = name;
27         this.itemType = itemType;
28         //this.barcode = barcode;
29         this.date = date;
30         this.claimedStatus = claimedStatus;
31         
32         
33     }
34     
35     public String getName(){
36         return name;
37     }
38     
39     public String getItemType(){ //type can be a class
40         return itemType;
41        
42     }
43     
44     public String getDate(){
45         return date;
46     }
47     
48     public boolean getClaimedStatus(){
49         return claimedStatus;
50     }    
51     
52     
53 }
54