C++ 35 - Object oriented programming (Classes) Tutorial [PART 3]

Loading...

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

Uploaded by on Sep 27, 2009

Another C++ tutorial has finally hit the streets of YouTube! :D I'm sorry about the delay but I haven't been around my own computer the last couple of days so I haven't been able to make another tutorial =(

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • You are not multiplying 0 * 0, because you didn't initialize the x,y properties. Those variables have random trash values.

  • My name is Benjamin too!! That weirdo number is due to declared variables containing "garbage" not 0. If you sent out a and b to cout, you would see that they do not contain 0s unless you initialize them to 0.

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • Polymorphism is a very important part of OOP you didn't go into.

  • Thanks so much, beautiful tutorials

  • Thanks man

  • thanks...for teaching us all...brilliant

  • One thing - variables must be initialized or they grab something in memory. Always set variables to some value.

  • A natural teacher. Simple and clear.

  • Hey Benjamin forget the wannabe critics.. good job on yur set of tutorials. Great for a newbe You've helped me understand many things I didn't before.

  • 1) initializer lists

    2) const correctness

    This tutorial is missing both

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