1 Star 0 Fork 49

bo/DesignPattern

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
IDCard.h 317 Bytes
一键复制 编辑 原始数据 按行查看 历史
涛哥威威 提交于 2018-10-09 08:52 +08:00 . classify
#pragma once
#include "IProduct.h"
#include <iostream>
#include <string>
class IDCard : public IProduct
{
public:
IDCard(const std::string &owner) : m_owner(owner) {}
void use() override
{
std::cout << "use IDCare with owner" << m_owner << std::endl;
}
private:
std::string m_owner;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/libo0379/DesignPattern.git
git@gitee.com:libo0379/DesignPattern.git
libo0379
DesignPattern
DesignPattern
master

搜索帮助