Загрузка...

Factory Design Pattern in C++ . Low Coupling. Multiple Derived Types of a Base Class.

#factorydesignpattern #designpattern #creationaldesignpattern #factorydesignpatternincpp #cplusplus #decoupleobjectscreation.

Factory Design pattern is used when there are multiple derived types of a particular base type and creation of those derived types needs to be decoupled with client.

In Factory Pattern, A Factoy Method / Static wrapper function in base type has a responsibility of creating the derived type depending upon the type of object requested by the client.

Benefits :
1. Low Coupling of derived types with the client.
2. Extensibility
3. Code ReUse

Видео Factory Design Pattern in C++ . Low Coupling. Multiple Derived Types of a Base Class. канала Sanchit Mehra
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять