• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird: Question about start

 
XU JUN
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, every one.
I received my URLyBird assignment recently. but I got Question about it. Hope you help me.

(1) Could I modify interface DB provided by Sun ( Sun don't say that you must not modify DB interface. but I can't confirm it.)

(2) I want use RMI for network.
if I can modify DB, How to implement RMI.
else if I can't modify DB, How to implement RMI.

I want your suggestion.
Thanks.
 
mike acre
Ranch Hand
Posts: 197
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not modify it.
They say you must implement it, if you change it, you will not be implementing what they supplied.

RMI will have nothing to do with the class that implements DB.

Were you planning on writing just one class for your application?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11833
181
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Xu,

Welcome to JavaRanch and this forum.

The common consensus is that you should not modify the provided interface. An interface is a contract between you and the users of your classes. If you modify the interface, you are changing the contract. If the user has written code based on your expected interface then their programs will not work. (To put that in more concrete terms, you possibly have a statement in your instructions telling you that when your assignment is being marked, "software checks that overall structure and nomenclature conform to specification" - this automated testing could fail if you change the interface.)

Regards, Andrew
 
XU JUN
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks mike and Andrew

Thanks to your indicate, I avoid a fatal mistake.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic