/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/CSIA14829 - Jane April 6th/src/csia14829/LostItem.java
 1 package csia14829;
 2 
 3 
 4 import csia14829.Item;
 5 
 6 /*
 7  * To change this license header, choose License Headers in Project Properties.
 8  * To change this template file, choose Tools | Templates
 9  * and open the template in the editor.
10  */
11 
12 /**
13  *
14  * @author 14829
15  */
16 public class LostItem extends Item{
17     
18     // needs to be information on whether the item is lost past four weeks
19     private String lostForMoreThanFourWeeks = ""; // can set to false first, then can change later
20     
21     public LostItem(String name, String itemType, String date, boolean claimedStatus, String lostForMoreThanFourWeeks){ //BarcodeGenerator barcode may add this later 
22         super(name, itemType, date, claimedStatus); //barcode --> add this later
23         this.claimedStatus = false;
24         this.lostForMoreThanFourWeeks = lostForMoreThanFourWeeks;        
25     }
26     
27     @Override
28     public boolean getClaimedStatus(){
29         return claimedStatus;
30     }
31     
32     public String getLostForMoreThanFourWeeks(){
33         return lostForMoreThanFourWeeks;
34     }
35 }
36