Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modifying classes other than Data class

 
Venita Glasfurd
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Just wanted to know if we would lose points if we modified classes other than Data.java.
I have modified the DataInfo class to return the value of a field given the field name. Is this okay?
Venita.
 
Thomas Fly
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have a copy of the examiner's rule book, so I can't say whether or not you'd lose points. If you can justify your design decision however, my guess is that you should not lose points (I changed most of the public methods in Data to package access, for example).
So (rhetorically speaking) where do you use the function you added, and why do you need this function?
 
Jim Bedenbaugh
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only class I modified was the Data class. Frankly, I can't think of a good reason to change any of the other supplied classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic