Factory Method Pattern - Design Patterns in C#

preview_player
Показать описание
Factory Method Pattern is mainly about giving creational details to derived classes of a superclass. It defines a separate operation for creating an object (factory method).

Here is github repository with this project:
Рекомендации по теме
Комментарии
Автор

This is not a "Factory Pattern". It demonstrates inheritance.

combitz
Автор

The example is good but you did not prove your point or at least did not even discuss the point you are about to prove. I came here due to the title "Factory Method Pattern" but you just dived into your example its classes and object creation but never once told any thing why are you making this video on the first place.

mrsajjad