The Artima Developer Community
Sponsored Link

Weblogs Forum
Overload Overload

15 replies on 2 pages. Most recent reply: Jul 31, 2003 8:04 AM by Daniel Ashton

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 15 replies on 2 pages [ « | 1 2 ]
Daniel Ashton

Posts: 1
Nickname: jdashton
Registered: Jun, 2003

Re: Overload Overload Posted: Jul 31, 2003 8:04 AM
Reply to this message Reply
Advertisement
Another approach would insist that your one overloaded method is far too accomplished and versatile. drawImage() should be capable of drawing an image. Resizing, no. Setting callbacks, probably not. Restricting to a region, probably not. All of these other tasks should be done by other methods. The point of overloading is to accomplish the same single purpose with multiple data types. If your overloading is used to add alternate functionality, then create separate methods. It's time to refactor!

Flat View: This topic has 15 replies on 2 pages [ « | 1  2 ]
Topic: Java Performance News Previous Topic   Next Topic Topic: Grand Unification Theories - two fields of action

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use