Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static methods

 
saravanan gnanasundaram
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the advantage of redefining a static method....any one give example
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean "redefining a static method?" Redefining it as what?
 
Campbell Ritchie
Sheriff
Posts: 48441
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You can't override a static method at all. You can only hide it, which is bad practice. We have an FAQ which you will probably find helpful/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic