Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Objective C Programming Tutorial - 27 - But what if I'm a millionaire?

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
23,794
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 16, 2010

Check out my blog http://thenewboston.blogspot.com/

Thanks for watching and don't forget to subscribe!

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 7 dislikes

Link to this comment:

Share to:

Top Comments

  • hahahahaha oh bucky. "I mean come on 3million dollars. let him date some 9 year old girls"

  • BUCKY OWNS ahha

see all

All Comments (48)

Sign In or Sign Up now to post a comment!
  •  <-------- 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.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more