It's not a secret anymore!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Extending vs. Modifying for design choice 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 "Extending vs. Modifying for design choice" Watch "Extending vs. Modifying for design choice" New topic

Extending vs. Modifying for design choice

Sam Stackly
Ranch Hand

Joined: May 04, 2002
Posts: 109
Hi Guys,
I am trying to finish my design choice and now I am dealing with this part (Extending vs. Modifying)
I'd like to have your comments on this part (by the way I didn't used none of those )
As I understand when we need to have a compelled new entity we will extends but if there is some functionality that is really bound to parent class we need to modify? But I guess I need some academic explanation for it,
Thanks again

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

It took me a while but I found my post from a few days ago. Check here for my response to that question.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Extending vs. Modifying for design choice
Similar Threads
Thread vs. Runnable
Aggregation vs. Inheritance
Modifying vs. Extending Data class
modifying vs. Extending the Data class
Extending vs Modifying the Data class