有人可以告诉我Java DOT运算符到底是做什么用的吗?
例如:
当我执行
例如:
public class {
int value;
public void great() {};
...
}
public static void main(String[] args) {
Person p = new Person();
Person.great(); // <--- here
Person.value; // <--- here
当我执行
Person.great()
或Person.value
时,我想知道上面代码中的.
运算符是做什么用的?