What can be added to the following code to cause the year to…
What can be added to the following code to cause the year to be displayed when the code is executed? class Date(): def __init__(self, month, day, year, descr = ‘Today’): self.__month = str(month) self.__day = str(day) self.__year = str(year) self.__descr = descr def getYear (self): return self.__year def setYear (self, year): self.__year = year return True # return ‘True’ to indicate success def __str__(self): return(str(self.__month) + ‘/’ + str(self.__day) + ‘/’ + str(self.__year) + ‘ – ‘ + str(self.__descr)) d1 = Date(’10’, ’01’, ‘2023’)d1.setYear(‘2024’)# We want to display the year …