Robin John wrote: OPTION A public class MyTestFactoryClass extends ObjectFactory { ...rest of the code // use the create methods directly } OPTION B public class MyTestFactoryClass { ObjectFactory objFactory = new ObjectFactory(); // use the instance to invoke create methods. }