Thread
:
Can this be done using abstract class??
View Single Post
#
2
(
permalink
)
07-25-2007, 11:57 PM
Seemster
Member
Join Date: Jul 2007
Posts: 55
set the method as static. for example I have class MyClass with a method doSomething like this:
public class MyClass {
public static doSomething() {
System.out.println("hello");
}
}
I can call this from another class as such: MyClass.doSomething();
Seemster
View Public Profile
Send a private message to Seemster
Find all posts by Seemster