我这样说对吗
[anIstance aMethod];
相当于
anIstance.aMethod; --?
如果是这种情况,那么带有一个或多个参数的方法呢?
做下面的语句
[anIstance aMethod : aParameter];
有等效的点符号吗?
我试过了
anIstance.aMethod : aParameter;
anIstance.aMethod(aParameter);
而且它们似乎不起作用(编译时错误)
如果没有办法用点表示法调用带有参数的方法,那么合成的 setter 方法(据我所知,根据定义接受一个参数)呢?
如果我有一个综合属性,请执行以下语句
anIstance.aProperty = anotherObject;
调用相对setter方法?还是它调用getter方法?