i wrote a program that have four classes .one of these classes is Date :
class Date {
public Date(int year,int month,int day)
}
in other classes there are some method that one of they're input is Date for example
public void f(Account account ,Date date)
i want to write the method in one of the classes that return the last time that one of the method with Date as input
are called
public Date g (){
//the code
}
what shoud the code be?