bibabolynn / bibabolynn/design-mode
简单工厂模式 工厂方法模式 抽象工厂模式
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
抽象工厂模式 Abstract Factory ,提供一个创建一系列相关或相互依赖对象的接口,而无需指定它们具体的类

工厂方法模式是定义一个用于创建对象的接口,让子类决定实例化哪一个类
抽象工厂模式与工厂方法模式的区别
抽象工厂模式是工厂方法模式的升级版本,他用来创建一组相关或者相互依赖的对象。他与工厂方法模式的区别就在于,工厂方法模式针对的是一个产品等级结构;而抽象工厂模式则是针对的多个产品等级结构。在编程中,通常一个产品结构,表现为一个接口或者抽象类,也就是说,工厂方法模式提供的所有产品都是衍生自同一个接口或抽象类,而抽象工厂模式所提供的产品则是衍生自不同的接口或抽象类。

Contributor guide
No contributing guide indexed for this repository
Research direction
The issue contains Chinese descriptions and diagrams for simple factory, factory method, and abstract factory patterns, but it names no file, entry point, or specific requested change. Clarify with the maintainer whether documentation or Java examples are wanted before locating the relevant project area; completion criteria are not defined in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100