Dot notation page 147 Goldstein's Objective-C book
* Here the author has an example with dot notation. The class is 'vacationBudgetEurope'. Two of the ivars declared in the interface for that class 'exchangeRate' and 'budget' are referred to in these lines of code.
vacationBudgetEurope.exhangeRate = 1.2500;
vacationBudgetEurope.budget = 1000.00;
Well that makes sense to me. I think that it may be encapsulation that throws me off when I encounter dot notation in the framework. Because I know it's not always this obvious.
* Here the author has an example with dot notation. The class is 'vacationBudgetEurope'. Two of the ivars declared in the interface for that class 'exchangeRate' and 'budget' are referred to in these lines of code.
vacationBudgetEurope.exhangeRate = 1.2500;
vacationBudgetEurope.budget = 1000.00;
Well that makes sense to me. I think that it may be encapsulation that throws me off when I encounter dot notation in the framework. Because I know it's not always this obvious.
No comments:
Post a Comment