摘要:
#include <iostream> #include <memory> class Product { public: void setPartA(int partA) { this->partA = partA; } void setPartB(int partB) { this->partB 阅读全文
posted @ 2022-02-25 17:45
南乡水
阅读(31)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <memory> class ProductA { public: virtual void show() = 0; }; class ConcreteProductA1 : public ProductA { public: void sh 阅读全文
posted @ 2022-02-25 17:44
南乡水
阅读(22)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <memory> class Product { public: virtual void show() const { std::cout << "In Product show()." << std::endl; } }; class C 阅读全文
posted @ 2022-02-25 17:32
南乡水
阅读(36)
评论(0)
推荐(0)

浙公网安备 33010602011771号