Exercise: Object Arrays

You are given the following class definition:


class Time{
private:
	int hour;
	int minute;
public:
	Time();  // initialize hour and minute
	bool setTime(int, int ); // modify hour and minute
	Time getTime(); // retrieve the values of hour and minute
	void showTime(); // display the values of hour and minute
};

Write a program that implements an array of 10 Time objects. Your program should ensure that no two objects contain the same time values when the setTime() member function is invoked. In other words, your program should check for time conflicts. You may add other class members if necessary

Sample Solution...