摘要:
一个工厂生产一种产品 //抽象水果类Fruit //抽象的工厂类FruitFactory //具体的工厂类 BananaFactory PearFactory //具体的水果 //Banana Pear class Fruit { public: virtual void sayName() { s 阅读全文
posted @ 2018-10-08 20:04 yacbo 阅读(205) 评论(0) 推荐(0) 编辑
posted @ 2018-10-08 20:04 yacbo 阅读(205) 评论(0) 推荐(0) 编辑
posted @ 2018-10-08 19:23 yacbo 阅读(195) 评论(0) 推荐(0) 编辑
Copyright © 2024 yacbo
Powered by .NET 8.0 on Kubernetes