Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interface provided by Sun

 
Song Jing Lim
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
G'day,
My SCJD assignmnet is concern home improvement contractors.
The instruction.html I receive stated that:
Your data access class must be called "Data.java", must be in a package called "suncertify.db", and must implement the following interface:

package suncertify.db;
public interface DBMain {
...
}

My question is can I add new methods that useful for me but seem missing in interface DBMain? (e.g. gerTotalRec(), getAllRec())
I had sent a mail to Sun and reply from monica (project manger for sun education worldwide) stated that "No, you can't change the interface.".
However I also get reply from some yahoo scjd forum stated that is ok to insert new method and modify the signature (to include the throws RemoteException) as long as I had stated the change in design document.
Any one had pass SCJD can help to cleary my questions?
Thanks
Rgds,
Song Jing, Lim
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the SCJD forum. PLease continue the discussion there. Thank you
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest taking Monica's word for it.
You shouldn't change that interface. Now you can make a seperate interface and have your DBMain implement both and write that up in your design.txt/choices.txt document why you did this.
Think through why you might want to do this, or is there another way.
I think posting what methods you want to add would get some good responses from all of us.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic