13 std::cout <<
"utils SMSubject::Updated no argument, will notify other " << std::endl;
18 std::cout <<
"utils SMSubject::Updated() has been notified " << std::endl;
25 std::cout <<
"utils SMSubject::Updated with argument send: " << message[0] <<
" " << message[1] << std::endl;
30 std::cout <<
"utils SMSubject::Updated() has been notified " << std::endl;
void Updated()
send updated function no argument
Concrete class for the subject/observable of StockManager.
void notify()
notify a message to all registered observer