Defined the factory pattern
Defined an Interface . Defined two classes and have implemented the interface Created the factoryclass which is basically responsible for creation of object. Thus provide flexibily for creation of object. Defined the Main Class i.e LanguageFactoryGenerator which calls the Factory class which is responsible for creaation of object .