wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes overloading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "overloading" Watch "overloading" New topic
Author

overloading

Don Bosco
Ranch Hand

Joined: Oct 31, 2002
Posts: 108
class A{
void test(){ }
static void test() { }
}
are we overloading test() here?
to be more precise
can we overload a function by changing the modifier?


SCJP 1.4<p>Wingardium Leviosa!!
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
No. This is not overloading. Overloading is when parameter types or sequence is differet.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: overloading
 
Similar Threads
Polymorphism and Instance Variables?
overloading
Overriding,Overloading methods
Interfaces
polymorphism with var args