i maybe just want to use the easy way but why not just use some global variables like you declare it above of your main function so that you can call that variable whenever you want without doing a lot of stuffs to store your variable and also you can assigned value to it?? any difference??
it seems like there are a whole new set of rules when using constructors , almost like you are going one level deeper into programming. that was made quite aparent in your video :D
but how come the constructor in your case knows strength when it was declared privately BELOW the constructor. i thought functions/classes always flowed linearly
antiRFTM thanks for the great "spoonfeed" video tutorials :)) I have seen some other video tutorials about classes and one thing that i could not understand was constructors. And now thanks to you i know what constructors are.
Hi antiRTFM, the fact is that not all good programmers can be a good teacher, and that only a few bright programmers can be one. You are the one. Your style of teaching is very good and simple and makes the learner to easily catch the idea.Keep it up!!!
i am sorry but u are incorrect. He is not of the the birghtest programmer. Not even close. He is no where near the programmers of IBM/Windows/big companies. HOWEVER, even the brightest, infact MOST of the brightest, can't teach shit. They are so bright and smart they confuse everyone. If this dude was one of the "brighter ones" he'd spout so much more advanced stuff at a rate that only the elite could comprehend.
@N0wShutUp Whatever one is teaching, can't be harder to understand for the learners whoever is teaching, it's still the same thing. Ofcourse a noob wouldn't understand advanced stuff if a pro is teaching. But a noob wouldn't understand advanced stuff whoever is teaching. So that's what I call a bad arguement. :)
no I mean before we used the constructor, we had a void function called start() and then in the start function we initialized the member variables, but every time we made an object we had to call the start function but I just felt it is not the real McCoy thing.
You are my Hero
Talal3439 2 weeks ago
|instructions|
1 - turn your volume all the way up at 1:20
2 - pain.
R3DRIFLE 4 weeks ago
How come you can't just define health and strength whenever you make them in the private part of the class?
gogonimago 5 months ago
I'm getting a no default constructor exists for class
cryingmushroom47 6 months ago
can u put a constructor in private?
zetarobot 11 months ago
i maybe just want to use the easy way but why not just use some global variables like you declare it above of your main function so that you can call that variable whenever you want without doing a lot of stuffs to store your variable and also you can assigned value to it?? any difference??
HawxTeamDelta 1 year ago
it seems like there are a whole new set of rules when using constructors , almost like you are going one level deeper into programming. that was made quite aparent in your video :D
amino0o 1 year ago
Hi, Just need one clarification, correct me if i'm wrong. Why can't we assisgn member variables a value in methods i.e the functions within class
babuks82 1 year ago
Hi, Just need one clarification, correct me if i'm wrong. Why can't we assisgn member variables a value in methods i.e the functions within class
babuks82 1 year ago
lol i just found out if u put in cout << "\a";
it would make a beeping noise
kincaid4212 1 year ago
@kincaid4212 yeah, that's an alert. they built that into c++. different letters do different things.
AJFreeway 1 year ago
Even with your "imperfect english" your tutorial is nothing less than GOLD.
farestabs 1 year ago
now i know how to run default method
slier81 2 years ago
lol the last video ended in a cliffhanger I was like "omg how do I do this!!??!"
t3psukka 2 years ago 11
Hahah yeah me 2 ! :D
Jollenbollen 2 years ago
Thanks, great way to understand constructors..
moidage 2 years ago
your my hero :-D
jasonxe1 2 years ago
Same.
I thought they were sorta useless.
HackedVision 2 years ago
Thanks, classes finally make sense to me.
I didn't know the constructor could take parameters.
metalspy008 2 years ago
Do you cover pointers in layer videos?
AlliedSamurais 2 years ago
Thanks anitRTFM
YOu rock!!!
paudeluttam 2 years ago
Thanks, this is explained clearly
mjd550 2 years ago 8
Ok thanks, I'll post it in the forums. :)
Dodimead 2 years ago 2
I get this error "left operand must be l-value" even though I have used the initializer to assign a integer to them. What have I done wrong?
And great tutorials by the way. They have helped me alot! :)
Dodimead 2 years ago
see my channel FAQ #3 and #2
antiRTFM 2 years ago
Comment removed
EndaCraig 2 years ago
Comment removed
EndaCraig 2 years ago
Legend :D
NOW i know the secret mwuahah
babyaiko 2 years ago
but how come the constructor in your case knows strength when it was declared privately BELOW the constructor. i thought functions/classes always flowed linearly
amino0o 3 years ago
i think i mentioned in one of the videos that in class declarations the order doest matter as long as its inside of the brackets
antiRTFM 3 years ago
Which tutorial should i got to see arrays.
Firemaster300 3 years ago
have a look on our forums where we have a detailed index of all the videos
antiRTFM 3 years ago
what about destructors?
SoulEni5k 3 years ago
i guess ill talk about it one day
antiRTFM 3 years ago
can we use the initialize for the simple attributes and just leave the complex things for the {brackets} ?
Sadlez 3 years ago
if we watch all your videos, will we learn how to do a coll little console game?????
juandude32 3 years ago
antiRFTM thanks for the great "spoonfeed" video tutorials :)) I have seen some other video tutorials about classes and one thing that i could not understand was constructors. And now thanks to you i know what constructors are.
MicroMacross 3 years ago
Thanks for the classes I would like to suggest making these codes available in some web site or some thing to help students
cus catching up with the video is kinda confusing
rehlan 3 years ago
You are my HERO!!!Keep those videos coming in...
bluzane 3 years ago
Hi antiRTFM, the fact is that not all good programmers can be a good teacher, and that only a few bright programmers can be one. You are the one. Your style of teaching is very good and simple and makes the learner to easily catch the idea.Keep it up!!!
bluzane 3 years ago
@bluzane
i am sorry but u are incorrect. He is not of the the birghtest programmer. Not even close. He is no where near the programmers of IBM/Windows/big companies. HOWEVER, even the brightest, infact MOST of the brightest, can't teach shit. They are so bright and smart they confuse everyone. If this dude was one of the "brighter ones" he'd spout so much more advanced stuff at a rate that only the elite could comprehend.
N0wShutUp 1 year ago
@N0wShutUp Whatever one is teaching, can't be harder to understand for the learners whoever is teaching, it's still the same thing. Ofcourse a noob wouldn't understand advanced stuff if a pro is teaching. But a noob wouldn't understand advanced stuff whoever is teaching. So that's what I call a bad arguement. :)
Zohmarv 1 year ago
Before I watched this video I knew there was something fishy about the start function!!
danielghofrani 3 years ago
what do you mean "start function"? the constructor function?
antiRTFM 3 years ago
no I mean before we used the constructor, we had a void function called start() and then in the start function we initialized the member variables, but every time we made an object we had to call the start function but I just felt it is not the real McCoy thing.
did you get what I mean?
danielghofrani 3 years ago
oh i see :)
antiRTFM 3 years ago