I read most of the design choose of
SCJD in the forum. Most of high scorer use only one interface as the remote interface. And in both local mode and network mode,there is a DataClient and a DataServer which implements this interface. But I don't know which method should be declared in this interface.
In my original design, I declared some method like book(),getAllFlightInfo(),getFieldName()..5 methods. It it enought for use in network mode. My archtecture is UI-DataClient-interface-DataServer-BusinesslogicrsBean-Data-db.db.
But in the local mode, instruction said I must implement all the public method of Data.class, with origianl design,i.e. My DataClient only implement the method getAllFlightInformation(), within the class,I new a Data and manupulate the data instance to get the information. It is no need for me to implement the same methods(such as getRecordCount()) in the Data class. But the guide say I should do it. But I don't know why. Maybe my design is wrong?
Who can tell me which is the right design. If the Data Client should implement all the public method of Data, should Data server also implement the methods?
Local Mode: UI-Client-Data-db.db
Pls help me!!!