In the design of complex applications, there can be cases where multiple classes are implemented on the same level of inheritance and/or implement the same interface. In such instances, when new classes are introduced at the same level, it becomes more and more difficult to adhere to changes and to maintain creation of specific objects with less changes in code. In this article, we have shared how we can use factory design pattern to ease creation of objects when there are multiple classes having similar
Weiterlesen...