It's been a while since I got down and dirty with some fashioned Java code....
I am wondering what's the difference between a static and a private method?
public class Myclass(){
public static void Main(String args[] str){
}
}
public class myobj(){
static int c1(){
Console.WriteLi ne("Hello!");
}
private void c2(){
Console.WriteLi ne("Made it here....");
}
}
I am wondering what's the difference between a static and a private method?
public class Myclass(){
public static void Main(String args[] str){
}
}
public class myobj(){
static int c1(){
Console.WriteLi ne("Hello!");
}
private void c2(){
Console.WriteLi ne("Made it here....");
}
}
Comment