| Author |
B&S: Data Constructors Signature
|
Laura Pecoraro
Ranch Hand
Joined: Mar 31, 2009
Posts: 45
|
|
Hi all...
I have a doubt about my data constructors signature... in the Sun specification don't say about this constructors, and then, I implements this:
This is a problem for automatic test???
Thanks Laura
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4389
|
|
My data-constructor is
So if your constructor is a problem, then my constructor is too. So i don't think you have to worry about passing a String-argument to your constructor. In my assignment nothing is said about Data having a no-arg public constructor (like the must-requirement for RecordNotFoundException), just that Data must implement sun's interface. So don't worry at all!
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
Roberto Perillo
Bartender
Joined: Dec 28, 2007
Posts: 2216
|
|
|
No need to worry, guys. My constructor is just like Roel's... Laura, I am pretty sure I have seen other people doing just like you did, and were successful.
|
Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
|
 |
Laura Pecoraro
Ranch Hand
Joined: Mar 31, 2009
Posts: 45
|
|
Thanks friends... to my great relief
Laura
|
 |
 |
|
|
subject: B&S: Data Constructors Signature
|
|
|