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

NX:Am I allowed to modify the "DBMain" interface?

 
Sang-Wook Kim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am working on the URLyBird and I have a question after having
a look at the interface "DBMain", which is the only given java
codes. Are we allowed to modify this interface such as by adding
more methods and more exceptions? I believe it is possible since
it's not written anywhere that we are not allowed to do so.
Thanks in advance for the reply!
Sang-Wook
 
Charlie Goth
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My instructions state: "Your data access class must be called "Data.java", must be in a package called "suncertify.db", and must implement the following interface: ". So I'd say no, you can't modify it.
Charlie
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kim,
Originally posted by Sang-Wook Kim:
Hello,
I am working on the URLyBird and I have a question after having
a look at the interface "DBMain", which is the only given java
codes. Are we allowed to modify this interface such as by adding
more methods and more exceptions? I believe it is possible since
it's not written anywhere that we are not allowed to do so.
Thanks in advance for the reply!
Sang-Wook

Nope(Its not advisable). If you want to add any helper methods and other exceptions, you can extend the given interface and add additional methods and exceptions to new interface.
A -- Sun provided interface.
B -- Your interface.
C -- Data class.
You can do somewhat like this...

You can add to B as you wish.
Good Luck
 
Sang-Wook Kim
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Charlie, Satish,
Thank you for your replies! So I should leave "DBMain" as it is.
Thanks again and good luck!
Sang-Wook
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sang-Wook Kim:
Dear Charlie, Satish,
Thank you for your replies! So I should leave "DBMain" as it is.

Yep

Thanks again and good luck!
Sang-Wook
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic