Results 1 to 2 of 2
Thread: Interfaces (not GUI)
- 11-05-2010, 04:54 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 6
- Rep Power
- 0
Interfaces (not GUI)
I'm not sure if I'm writing in the right forum, but here it goes.
I need some advice on interface using. And no, I'm not talking about GUI's, i'm talking about "interface Foo { ... }". I'm doing an Odontology Clinic administration program for my uni assignment, and one of the tasks is to create an interface, and make one class implement it.
Now, thing is, that i don't really know what the "good practice" of writing interfaces is. My lecturer doesn't pass just because the program works, it needs to both work and be logical, and he's quite strict in that thing.
My OdontologyClinic class has ArrayLists of Workers, Clients, Visits and Tools that Odontologists (derived from Worker) use. Worker and Client are both Persons, and they basically only have salaries. Person has a name, surname, PersonalId number, etc.
Operations are quite basic: export ArrayList, import ArrayList, add/remove element, set a field, etc.
I know all of this is really abstract, but I have no idea of how to explain it more clearly. Code itself is quite long and consists of quite a few classes, so I doubt any of you guys will read it.
This interface only has to have one or two methods.
I've already said it, but I'll make it real clear. My question is: when an interface is needed in a program?
I hope anyone will be interested in this topic :)
- 11-05-2010, 07:16 PM #2
Similar Threads
-
Interfaces
By justin1980 in forum New To JavaReplies: 9Last Post: 02-10-2010, 12:04 PM -
Interfaces
By computerquip in forum New To JavaReplies: 19Last Post: 09-08-2009, 04:58 PM -
Interfaces
By jon80 in forum New To JavaReplies: 2Last Post: 05-03-2008, 09:57 PM -
Interfaces
By imran_khan in forum New To JavaReplies: 5Last Post: 07-30-2007, 08:11 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks