Using
SingletonPattern.cpp
as a starting point, create a class that manages a fixed number of its own
objects.
Create
a minimal Observer-Observable design in two classes, without base classes and
without the extra arguments in
Observer.h
and the member functions in
Observable.h.
Just create the bare minimum in the two classes, then demonstrate your design
by creating one
Observable
and many
Observers,
and cause the
Observable
to update the
Observers.
Change
InnerClassIdiom.cpp
so that
Outer
uses multiple inheritance instead of the inner class idiom.