K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
pramod KARNANI wrote:
how to retrive intially all records when Application Starts?
pramod KARNANI wrote:
when application starts in standalone mode (no networking) user will select database file and click on connect button and will be able to see all records in GUI in JTable .
or there is no need to display all records when Application starts ?
Yudiman Kwanmas wrote:
Because the spec only describes that the class Data has to implement the DB interface. But it doesn't mention that we have to use DB to instantiate the class Data.
Regards,<br>K. Mahesh<br> <br>SCJP 1.2 Aug-2001 : 79%
Yudiman Kwanmas wrote:
1) I created an interface that extends the DB interface. Let's call it DB2. So "interface DB2 extends DB {...}".
2) DB2 contains the declaration for method "getAllRecords()", and methods already declared in interface DB.
Yudiman Kwanmas wrote:
3) Class Data implements both DB and DB2, therefore class Data must implement methods from both interfaces.
Yudiman Kwanmas wrote:
4) Then, it would be DB2 db = new DB2();
Would it be acceptable from either the OOP & the spec's point of view?
Regards,<br>K. Mahesh<br> <br>SCJP 1.2 Aug-2001 : 79%
It was the best of times. It was the worst of times. It was a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|