ABSTRACT FACTORY PATTERN Provide an interface for creating families of related or dependent objects without specifying their concrete classes. Casual Implementation Factory Pattern Implementation Usual Code Block Factory Pattern Parent Class public class CheckBook { protected decimal _Amount; public decimal getExpense() { return _Amount; } } These below child classes is derived from CheckBook base class. public class Health : CheckBook { public Health() { _Amount = 5000;//Could be any logi...
It's All about Latest Web Technology, Data Science, ML and AI