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.
I have doubts about my Project. Is it true that the only things what must be in GUI are : View all records View specified (by name and/or location fields) Booking selected contractors Is it everything else I must do? Does adding record or even unbooking is necessary?? Please help me.
Even though the GUI that is required for us to implement is quite limited, I agree with Jeffry that we need to implement all the methods of the documented interface. This would include methods such as record creation which would not be leveraged by our GUI.
Part of the exam is to assess our skills as OO designers. OO frequently targets implementation of functionality for future envisioned requirements or reuse in a different application. For example the current exam is to produce a GUI suitable for CSRs -- some objects we develop could be reused by the B&S Marketing Department in the future.
Best regards<br />Tom<br /> <br />SCJP4<br />SCJD6 (B&S in progress)
I can't say that I agree with this. I think that in a real world scenario it would be a bad idea to try and guess what future needs will be. So if I had to implement this interface for the company I work for, I would just throw an exception when the methods that are not supported are called. This is nothing unusual even within standard implementation of e.g. JDBC or EJB interfaces. But, this is not real life and I will probably implement all methods. But I think you would get away with only implementing the needed methods, as long as you explain explicitly why you did so.
should I keep deleted flag inside my Contractor object . What is meaning of [B]"1 byte "deleted" flag. 0 implies valid record, 1 implies deleted record "[/B.It is written in Data Section of Data File Format in Sun Instruction
I define these fields in Contractor Object .
private int recordNumber; private String subcontractorName = ""; private String city = ""; private String typesOfWorkPerformed = ""; private int numberOfStaffInOrganization; private int hourlyRate; private long cutomerId;