/**
 *   Author: Gurkirat Singh
 *	 Date: Nov 27,2018
 *   Course: CST8130
 *   
 *   Purpose: This class extends the Events class.
 *   		 This class holds the information regarding the Meeting event.
 *    Data Fields:  default constructor
 *    				initial constructor (OurDate, OurTime)- set the value of the Object to the objects in parameter
 *    				initial constructor (int,int,int,int,int,String,String)- he constructor set the day, month, year, hour, minute, description,location to the parameter values.
 *    				location: String - Holds the location
 *    				workplace: void - prompt the user to enter the workplace.
 *    				location: void - prompt the user to enter the location
 *    				toString: String - return the all information of event created
 *    				getDate: OurDate -  method which return the date.
 * 					getTime: OurTime -  method which returns the time.
 */					
public class Meeting extends Events {

	String location;

	public Meeting(OurDate date, OurTime time) {
		super();
		super.date = date;
		super.time = time;
		location();
	}

	public Meeting(int day, int month, int year, int hour, int minute, String description, String location) {

		super(day, month, year, hour, minute);
		this.location = location;
		super.description=description;
	}

	public Meeting() {
		// TODO Auto-generated constructor stub
	}

	public OurDate getDate() {
		return date;
	}

	public OurTime getTime() {
		return time;
	}

	public void location() {

		System.out.println("Enter Location");
		location = scan.next();

	}

	public String toString() {
		return date.toString() + " " + time.toString() + " " + super.description + " at " + location;

	}

}
