Factory Method
8/8/25Less than 1 minute
Factory Method
Factory method is a creational design pattern which solves the problem of creating product objects without specifying their concrete classes.
- Factory Method là 1 creational pattern giải quyết các vấn đề khởi tạo đối tượng mà không để lộ logic ở phái người dùng.
- Define 1 method dùng để khởi tạo object mà không cần dùng operation new