The idea after the Abstract Factory pattern is the notion about our program (or the client of a class we are providing) working with several products (as those in a factory) which have some given characteristics (for example we have bottled products and products in a tetrabrik). Our program is going to use those products performing a couple of actions over them (like putting the bottles in one truck and the tetra briks in another one) without caring about who is actually providing him with the products.
Abstract classes and interfaces
Abstract classes and methods Generally we understand a pure abstract class as any class having only abstract methods. Method abstraction is a very useful technique to define behavior patterns over the classes that are going to inherit from a given class we are defining. An abstract method is a class method which won’t be implemented…