Re: Using getClass method of Object class in a factory pattern
Posted By:
jeremie_granat
Posted On:
Wednesday, August 7, 2002 05:33 AM
getClass is a non-static method and can only be used with an object.
ClassName.class should be used if you don't have an object.