Hi, I read some of the old posts in the forum.
Someone suggested making Data class a singleton and synchronized all its methods.
In the requirement, it does not say this.
So, can I use Monkhouse book's approach to make Data class a facade?
In Monkhouse book , the DvdDatabase class is a facade and it is not a singleton to my understanding. In DvdDatabase class, there are two static objects of ReservationManager and DvdFileAccess. Only one instance of each of them is created and all methods in ReservationManagers and DvdFileAccess are made to be
thread safe (by synchronizing blocks of codes or using lock).