toString method

  1. @override
String toString()
override

转换为字符串

Implementation

@override
String toString() {
  return "x:" + x.toString() + ",y:" + y.toString();
}