Hey,
I was recently having a discussion with a guy who is heavily into game development, anyway we were discussing C++ in general and the subject of Vtables cropped up.
Now i didnt have a clue what a Vtable was, the name rings a bell but ive never needed to use them so havent looked into them. Anyway i went online to have a look and the information on them seemed fairly sparse or a bit too in depth.
They just look like a fancy array of function pointers, but i dont get why you would use them, the syntax looks horrible for using them, so is the performance benefit worthwhile? can anyone sum up why you would use them and a quick example of how they would acctually be used. I know this may be a pain for you so i dont mind taking a decent article instead, just something to get a grasp on them and give them a little whirl myself...
Im just unsure as to how you acctually declare them properly as the syntax just looked like normal classes with virtual functions declared, which is fine if you dont need to change your class definitions, but then i dont get how you know what function will be at what memory location...
