// Programmer: Rance Cleaveland // Date: 20 Oct. 2006 // // This class implements operations on date ranges public class DateRange { private Date start = null; // start date of range private Date end = null; // end date of range // Constructor DateRange (Date start, Date end) { this.start = new Date(start); this.end = new Date(end); } // Default constructor DateRange () { } // access methods Date getStart () { //(OLD) return start; return new Date(start); } Date getEnd () { //(OLD) return end; return new Date(end); } }