DBMain: extend or change
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi all,
I need some extra methods than those definied in the must-implement interface, so i could do 2 things:
- extend the DBMain-interface and add the methods in the new interface
- just add those methods to the DBMain interface
My instructions tell me:
So i think i'm not violating the instructions: it tells me to implement that interface (and i will do) but i add some methods. But then there's the automatic-fail monster which i'm very afraid of. Do I risk automatic failure by just adding some methods instead of extending the DBMain-interface, because out of a Java point of view it doesn't makes a difference between extending the interface or just adding the methods to existing interface.
Kind regards,
Roel
I need some extra methods than those definied in the must-implement interface, so i could do 2 things:
- extend the DBMain-interface and add the methods in the new interface
- just add those methods to the DBMain interface
My instructions tell me:
Your data access class must be called "Data.java", must be in a package called "suncertify.db", and must implement the following interface:
// and then the interface is mentioned
So i think i'm not violating the instructions: it tells me to implement that interface (and i will do) but i add some methods. But then there's the automatic-fail monster which i'm very afraid of. Do I risk automatic failure by just adding some methods instead of extending the DBMain-interface, because out of a Java point of view it doesn't makes a difference between extending the interface or just adding the methods to existing interface.
Kind regards,
Roel
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi, I create my own interface that extends the interface provided by Sun and add 2 additional methods such as book room and search.
Don't forget to document your decision.
Good Luck !!!
Jeffry Kristianto Yanuar (Java Instructor) SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
Don't forget to document your decision.
Good Luck !!!
Jeffry Kristianto Yanuar (Java Instructor) SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
posted 16 years ago
I will certainly document my decision.
Is there by any change a java-rancher that followed the same approach and passed the scjd? To be really sure it's not an automatic fail criterium. My own common sense says it shouldn't lead to automatic failure, but i don't know if the common sense of the author of the automatic tests is following the same path as mine
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Jeffry Kristianto Yanuar wrote:
Don't forget to document your decision.
I will certainly document my decision.
Is there by any change a java-rancher that followed the same approach and passed the scjd? To be really sure it's not an automatic fail criterium. My own common sense says it shouldn't lead to automatic failure, but i don't know if the common sense of the author of the automatic tests is following the same path as mine

| If you were a tree, what sort of tree would you be? This tiny ad is a poop beast. The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |











