• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

modify or extend

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic