mirror of
https://github.com/huihut/interview.git
synced 2024-03-22 13:10:48 +08:00
16 lines
258 B
C++
16 lines
258 B
C++
//
|
|
// Created by xiemenghui on 2018/7/21.
|
|
//
|
|
|
|
#ifndef DESIGNPATTERN_OBSERVER_H
|
|
#define DESIGNPATTERN_OBSERVER_H
|
|
|
|
// Abstract observer
|
|
class IObserver
|
|
{
|
|
public:
|
|
virtual void Update(float price) = 0; // Update price
|
|
};
|
|
|
|
#endif //DESIGNPATTERN_OBSERVER_H
|