This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hello, everyone: I know this question has already been discussed, but cannot find it. the assignmnet says : This implementation should include a class that implements the same public mehthods as the Data class
I am not sure what is this mean. At first I thought the structure like this
so client only need handle facade, know nothing about the data class but after read carefully about this specification, I am confused. do I need a class in the client side that implements all the method of the DataInterface so every method connect the server through the network,
or just DataInterface on the client side like this?
It looks like most people choose the last choice(in various ways) thanks
Hi Mao, The way I interpreted those instructions was that I had to be able to call the same methods as in the Data class from within the code on the client side. So I had code (somewhere) on my client side something like:
(Obviously not real code, but hopefully you get my point). My class that had this code was the same location as your FBNFacade. Although I did not have a facade. I had a factory that returned either a local or a remote connection to the DB. Regards, Andrew