這是一個簡單的問題,只是我無法弄清楚它的含義。澄清xcode obj-c代碼
是4種不同的方法還是4種參數的方法。
+ (double)doCalc:(float)interestRate
numOfCompounds:(int)interestFrequency
intialDeposited:(float)deposit
lengthOfTimeBanked:(int)period;
讓我困惑的是它與numOfCompounds的出處:(int)interestFrequency。
這是否意味着它是一個單獨的參數?
在此先感謝。
謝謝,不得不說你的答案更容易理解。 – 2011-02-28 00:56:35