C++ Tutorial #8, Classes (2)

Loading...

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

Uploaded by on Dec 22, 2007

Classes! Part two.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:

Top Comments

  • At the start of your tutorial video you kept repeating "A class is an object". That statement is false. Your class is "Book" and your object is "Newbook". A class is a blueprint of a building and an object is a physical manifestation of that building based on the blueprints (AKA the class).

  • we need to call delete[] to free up allocated pointer in the heap

see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • Stop blinking that much, it makes me crazy!

  • @Juelz85 A class isn't a blueprint of a building, its a recipe for the object...

  • @itsdannyftw oh, i see... thanks

  • @mrmasta50

    why? it's a string, you cannot assign a "string" inputted by the user into the "string" holder.

  • shouldnt you have wrote "cin >> bookname;" instead of the getline

  • @mtsurov what? wouldn't you want a thorough lesson that teaches many aspects of programming? It only makes you a better programmer, learning to program takes time and if you don't have time to invest then don't learn programming.... its that simple

  • I agree with you infamouskiller. And "Strelok" as they call you, you should have showed us the example of when the "Not Specified" happens, as, same with your code, unless I messed up, it won't show any "default code" if there is no input specified.

  • why did you have to use pointers and arrays at all?

  • i agree i u lost me after the getline variables

    im getting how to do classes better but could only use half that video needs much more explanation and use simpler implementation thnks for the tut.

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