I wanted to add more methods to the Calendar from java.util.Calendar, but I'm having trouble using the getInstance method.
If I have an object like:
public class DateObject extends Calendar{ // other methods here }
And I do DateObject mon = DateObject.getInstance();
The code does not work. Even if I replace it with Calendar.getInstance(), I can't convert a Calendar to my DateObject.
How do I make my DateObject use getInstance()?