This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Modifying classes other than Data class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Modifying classes other than Data class" Watch "Modifying classes other than Data class" New topic
Author

Modifying classes other than Data class

Venita Glasfurd
Greenhorn

Joined: Sep 11, 2002
Posts: 12
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

Joined: Sep 09, 2002
Posts: 164
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?


Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="http://thomasfly.com/songs/Traffic/Hole_in_my_Shoe_qt.htm" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
Jim Bedenbaugh
Ranch Hand

Joined: Nov 09, 2001
Posts: 171
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.


Regards,
Jim
SCJP, SCJD, SCWCD, SCEA Part I
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Modifying classes other than Data class
 
Similar Threads
Hibernate Search In Action: Score Building
What is the Prototype for Main method in java
Why classes are declared final.
Accessibility Modifiers for classes
SUNJCE and IBMJCE