C++ Tutorial #8, Classes (2)
Top Comments
All Comments (17)
-
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
-
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.
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).
Juelz85 4 years ago 6
we need to call delete[] to free up allocated pointer in the heap
kabirdasssenthil 10 months ago