>>5
Hey, dumb shit. I hate to break it to you, but
>>2 isn't helpful at all because that's not C or C++. I can see you're doing a great job learning those languages.
Also, simply searching 'C++ and polymorphism' on google would lead you to many results explaining this common and simple programming technique. But before you do that, you need to learn the basics and not act like a dumbass. If you don't know what a 'class' or OOP is, you need to go back to your textbook and start reading, because you're not even to novice level yet. Essentially, UR DOING IT WRONG. You can't learn a language by only reading source code. Go buy a good book and READ IT, instead of coming here like some dumb nub thinking he's entitled to full length explanations to every one of his dumb ass questions.