Objective C Programming Tutorial - 27 - But what if I'm a millionaire?
Top Comments
All Comments (48)
-
<-------- yum!! ur the best teacher for objective c on the internet!!!
-
@TheHalfO these are NOT variables, that are ARGUMENTS that you pass to the method. The method needs these arguments (see interface)!
And they are declared in the header (important!) while saying e. g. "(int) i"
And it is done that way in EVERY programming language. Example, Java:
dateAge(65, 3000000);
Implementation in Java would be:
public void dateAge(int a, int i) { ...
}
-
creepiest dating advice ever.
-
@xxx9888888888 this is why i find ob c so confusing. i asked myself the exact same question! buck please explain!!
-
@xxx9888888888 There is a difference between class variables and local variables. Age and weight are properties within the class so each person object stores a value for them. In the dateAge method, you pass in another age and an income. These are not stored in the object. They are only used in that one method. In fact the age already stored in the object is ignored and the value passed into the method is used.
-
hahaha, i guess mohammed made 3 million dollars a years back in the day when he married a 9 year old!
-
pedo
-
but in buckytest2.m you hve wrote 100000 argument but where is the income argument in synthesize like @synthesize age:weight:income ????????
you did not declare what is income or not setIncome =100000; than how the programe recognized that i = 300000 .......
-
I'm worried someone will find this program on my computer and start assuming things...
-
Very educational and very entertaining thanks bucky as always.
hahahahaha oh bucky. "I mean come on 3million dollars. let him date some 9 year old girls"
jdevver 1 year ago 67
BUCKY OWNS ahha
TehRRoyce 1 year ago 30