??????????????????????????????????????????????????????????????????????????ζ?????????????????signature?????????????????????????????????????????????????????в?????????????????????????????


Coordinate c = Coordinate.createFromCartesian(double x?? double y)

Coordinate c = Coordinate.createFromPolar(double distance?? double angle)
 


?????????????????????????

???????????????????????


public class Foo{
  public Foo(boolean withBar){
    //...
  }
}

//...

// What exactly does this mean?
Foo foo = new Foo(true);
// You have to lookup the documentation to be sure.
// Even if you remember that the boolean has something to do with a Bar
// you might not remember whether it specified withBar or withoutBar.
 

 

public class Foo{
  public static Foo createWithBar(){
    //...
  }

  public static Foo createWithoutBar(){
    //...
  }
}

// ...

// This is much easier to read!
Foo foo = Foo.createWithBar();