我正在为将接口定义为的抽象类阅读此代码:-
class Subject;
class Observer {
public:
virtual ~ Observer();
virtual void Update(Subject* theChangedSubject) = 0;//can someone tell what this method
does
protected:
Observer();
};
我正在为将接口定义为的抽象类阅读此代码:-
class Subject;
class Observer {
public:
virtual ~ Observer();
virtual void Update(Subject* theChangedSubject) = 0;//can someone tell what this method
does
protected:
Observer();
};