Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
china
us
Animal.java
AnimalFactory.java
AnimalfactoryDemo.java
Cat.java
Dog.java
Duck.java
README.md

README.md

抽象类型Animal不是描述抽象工厂所必须的, 如果没有Animal类型,则抽象工厂AnimalFactory需要定义三个方法,分别获取三个动物实例

You can’t perform that action at this time.