People often suggest using composition instead of inheritance. In any case, there are cases where inheritance is better. You said:
I need, for example, simple methods for adding minutes to a date, etc.
If you really need simple methods and no extra fields are needed to store additional properties, then follow the @Giacomo approach, using the DateUtils class, as he suggested, with static methods that can perform the necessary operations.
If you need to store additional data in a Date object, then consider using a class for this. If so, I disagree with @thasc, because even if usually using composition instead of inheritance might be good practice, creating an extended version of the Date class will allow you to use ExtendedDateObject directly in the method that requires the Date parameter.
source share