Design Patterns: Factory pattern
The Factory pattern is a creational design pattern that provides an interface for creating objects but allows subclasses to decide which class to instantiate. This pattern is suitable for projects where there is a need to create objects without havin...
techtruth.hashnode.dev3 min read