How to construct a class called Date that has three variables (day,month,year)?