What is the ABSTRACT FACTORY PATTERN in Python?

preview_player
Показать описание
This video shows why and when to use a the abstract factory design pattern and how it is different from the factory method design pattern. It is the last video in a 3-part video series: Factories

C H A P T E R S
0:50 Concrete classes still have to be made
1:52 Converter example with two configurations
2:30 Replace factory with a new factory that can create a familie of objects
4:05 The configuration is made in main
4:30 The difference between the factory method pattern and the abstract factory pattern

M Y O N L I N E T R A I N I N G

#pythonforeveryone #programming #python
Рекомендации по теме
Комментарии
Автор

Thanks, a lot! after watching several videos and even studying gang of four's book, finally, this video solved the problem for me!

hamedjavidpoor
Автор

I'm sitting here with a lot of questions, but they appear because of my intelligence lack, so I need to rewatch the video a few more times. Thanks for your work, I appreciate it, my knowledge is going to be extended.

makstef
Автор

To extend on the usage of the converters in main, instead of creating two executables, one doing xml->json and the other vice versa, could we create a single executable that would take arguments to designate which conversion to do?

machinimaaquinix
Автор

Honestly that cant be so simple
My brain says for me
Factory method pattern is a method that return an instance
Abstract method pattern is a multiple methods that return an instances

pcb