I was checking for that
and found out something
like we instantiate DateFormat class as follows
as the DateFormat class is abstract and the object is of the subclass that extends the DateFormat class
I tried the program to check whether we can do it manually or not
when I run the program given by Ankit sir
that gives the name of the class is SimpleDateFormat
I tried that method with my code and got some similar results for my classes
here is it
this prints out
F:\Java\Javaranch problems>java ConcreteClass
Abstract class constructor
in the ConcreteClass constructor
Abstract class constructor
In the AnotherConcreteClass constructor with String argument
class ConcreteClass
class AnotherConcreteClass
My question here is
is this the way DateFormat and NumberFormat classes are created while creating java?
or is this the way that can resemble to that way?
Expecting help from Ankit sir and the great Henry sir