rect 又不是成员变量,而且你又注掉了Rectangle *rect = [[Rectangle alloc] initWithWidth:s Height:s]; 当然打不出了[sq area]和[sq perimeter]
rect 又不是成员变量,而且你又注掉了Rectangle *rect = [[Rectangle alloc] initWithWidth:s Height:s]; 当然打不出了[sq area]和[sq perimeter]