public class MainClass
{
int c = 3;
public int abc(int a)
{
a = a + c;
return a;
}
public static void main(String[] args)
{
MainClass z = new MainClass();
int x = z.abc(4);
System.out.println(x);
}
}
// If you dont want to access external methods through object declare it as static