This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Private and Static Methods

 
Nilesh Srivastava
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All..
Can any one tell me whether a static method can be overloaded.
Also can a private method can be overloaded.
Please explain in detail...
Thanks in advance
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer to both questions is yes, but I'm going to qualify this by reminding you that overloading means having multiple methods in the same class with the same name but different argument lists; it's different from overriding or polymorphism, in which multiple classes in an inheritance hierarchy implement the same method with the same argument list.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic