Functions defined in a class are called Method in java.
public int sum( int x, int y) // parameters
{
sum = x+y ;
return sum
}
z = sum(5,6) // arguments
No comments:
Post a Comment