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]