I'm new to programming, and I've encountered classes/objects before, but what I don't understand is why not just use a simple function to do the same thing? Creating a class just seems like a lot of extra typing for no real good reason.
Suppose you wanted to record the height and weight of 100 people. If you were to write functions, you would need to make 200 variables and a lot of functions.
However, if you use make a class, you can deal with each person with just a single line such as [yourclass] Bob(72, 160).
Nice Downloading for watching it on teh morning
LeandroIsHere 2 months ago
This has been flagged as spam show
im mohammd from saudia arabia
thakns alot man
i realy aprichit what your doing
alshar55@hotmail.com
alshar43 4 months ago
way better than my professor. much appreciated for all your tutorials man. thanks
sk8erboy9065 11 months ago
I luv the analogy about the class and the mother haha, thanx a lot for the effort that you put into all of your tutorials bro, god bless you =D
gusanoana 1 year ago
dude, your better than my professor in terms of explanation... >:D simple.
how about my pet dog? he's only entitled for a sack of dog feed :D
pakbet2010 1 year ago
Thanks a lot. Simple and quite understandable.
Unorthodoxpresence 1 year ago
no no c++ dosent relate to family :)
Anddos25 1 year ago
I'm new to programming, and I've encountered classes/objects before, but what I don't understand is why not just use a simple function to do the same thing? Creating a class just seems like a lot of extra typing for no real good reason.
mandatum 1 year ago
@mandatum
if your making something like a game and your going to need a bunch of say badguys then you should make a class badguy
if you only need one badguy then its still usefull to have it where your functions for badguy can work together
101abob 1 year ago
@mandatum
Suppose you wanted to record the height and weight of 100 people. If you were to write functions, you would need to make 200 variables and a lot of functions.
However, if you use make a class, you can deal with each person with just a single line such as [yourclass] Bob(72, 160).
Hope that helps
legoisfun 1 year ago
haha...You have a BIGGGGG mother. :P
57004270 1 year ago
thanks bro...u teach very well!
lalox3003 2 years ago
thanks
fuzzyofadown 2 years ago