Riza Aktunc wrote:I know that abstract classes can't be instantiated. So, how come "public abstract class Calendar" has a constructor and get instantiated when its getInstance() method is called?
getInstance() method returns an object of a concrete implementation of Calendar class (like Gregorian calendar).
This is the relevant code I see on opening Calendar class in Eclipse: