// ObserverTestCPP.cpp : Defines the entry point for the console application.
int main(int argc, char* argv)
// We have four shops wanting to keep updated price set by product owner
Shop shop1("Shop 1");
Shop shop2("Shop 2");
//Now lets try chaging the products price, this should update the shops automatically
//Now shop2 is not interested in new prices so they unsubscribe
//Now lets try changing the products price again
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.