I have a question about parameter passing. In this example methodTwo wants to call methodOne but only use the x, and y values and not the Color color. When I try to do this i get a error in Eclipse "the method methodOne(double x, double y, Color color) in the type 'example class name' is not applicable for the arguments (double, double))"
Can methodTwo not call another methodOne if it does not use exactly all of the arguments of methodOne?
private void methodOne (double x, double y, Color color){
statements...;
}
private void methodTwo (x, y ){
methodOne(x, y);
statements...;
}