from appointment import Appointment class OneTimeAppointment(Appointment): def __init__(self, purpose, location, year, month, day, hour, minute): super( ).__init__(purpose, location, hour, minute) self.year = year self.month = month self.day = day def __str__(self): base = super( ).__str__( ) return base + "\nDate: {0:d}/{1:d}/{2:d}".format( \ self.month, self.day, self.year) def occurs_on(self, year, month, day): return self.year == year and \ self.month == month and \ self.day == day