permaculture playing cards
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes modify or extend Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "modify or extend " Watch "modify or extend " New topic

modify or extend

tom mcmorrow
Ranch Hand

Joined: Jan 11, 2002
Posts: 39
hi all
almost ready to upload assignment. however i feel my justification for modifying the data class is hardly conclusive and i could just as easily gone the other road and extended it. perhaps i have not enough experience with OO design. how did anyone out there who has gone through the process feel about their justification of this decision.
thanking you
Adam Roberts
Ranch Hand

Joined: Mar 18, 2002
Posts: 71
Here's what my thoughts are:
Extending the class would be done if the Data class needed methods overridden, not just if it needed new features. The deprecated methods *are* changed, but you dont really need to keep that code.
Again, you are correct in that its easy to go either way, personally I think the question is a little bit silly considering the other, much more important decisions that needed to be made
Hope that helps

Adam Roberts - SCJP2, SCJD<br />insert witty something here
I agree. Here's the link:
subject: modify or extend
It's not a secret anymore!