• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: Data Constructors Signature

 
Laura Pecoraro
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Laura Pecoraro
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks friends... to my great relief

Laura
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic