aspose file tools*
The moose likes Java in General and the fly likes Private and Static Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Private and Static Methods" Watch "Private and Static Methods" New topic
Author

Private and Static Methods

Nilesh Srivastava
Ranch Hand

Joined: Aug 29, 2003
Posts: 70
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Private and Static Methods