mirror of
https://github.com/huihut/interview.git
synced 2024-03-22 13:10:48 +08:00
18 lines
337 B
C++
18 lines
337 B
C++
//
|
|
// Created by xiemenghui on 2018/7/21.
|
|
//
|
|
|
|
#ifndef DESIGNPATTERN_IMPLEMENTOR_H
|
|
#define DESIGNPATTERN_IMPLEMENTOR_H
|
|
|
|
// 电器
|
|
class IElectricalEquipment
|
|
{
|
|
public:
|
|
virtual ~IElectricalEquipment(){}
|
|
virtual void PowerOn() = 0; // 打开
|
|
virtual void PowerOff() = 0; // 关闭
|
|
};
|
|
|
|
#endif //DESIGNPATTERN_IMPLEMENTOR_H
|