
/** 
 *   Author: Gurkirat Singh
 *	 Date: Nov 27,2018
 *   Course: CST8130
 *   Purpose: This is an abstract class which holds different types of events in the form of ArrayList.
 *   		  Also, 
 *   Data Fields: desc: String - for storing the description.
 *   
 *   Methods: default constructor - calls the description method.
 * 			initial constructor(int,int,int,int,int) - the constructor set the day, month, year, hour, minute to the parameter values. 
 * 			getDate: OurDate - abstract method which return the date.
 * 			getTime: OurTime - abstract method which returns the time.
 * 			description: void - prompts the user to enter the description.
 * 
 */

import java.util.Scanner;

public abstract class Events {

	Scanner scan = new Scanner(System.in);
	OurDate date = new OurDate();
	OurTime time = new OurTime();

	String description;

	public Events() {

		description();

	}

	public Events(int day, int month, int year, int hour, int minute) {
		date.setDay(day);
		date.setMonth(month);
		date.setYear(year);
		time.setHour(hour);
		time.setMinute(minute);

	}

	public abstract OurDate getDate();

	public abstract OurTime getTime();

	public void description() {

		System.out.println("Enter description:");
		description = scan.next();
	}

}