I want to override toString() method of class LocalDate. I know how to override toString() method of class with public constructor like java.util.Date using code like this:
Date date = new Date () {
@override
public String toString() {...}
}
But i cant do the same thing with class that have private constructor like java.time.LocalDate Is there are any way how i can workaround this?