126 reputation
4
bio website filmy.zaachi.com/cs/index
location Prague, Czech Republic
age 27
visits member for 3 years, 10 months
seen Aug 22 at 11:12

I'm student at CTU in Prague. I'm studying computer graphics and computer vision. It really entertains me.


Jul
9
comment A vector of pointers to different derived classes of the same base class
Sorry, but I actually don't understand your questions. But I will try to answer: First of all - you don't need any type-casting. This is working. It will call Update method of the right class (because update function is virtual in base class). And local variables in Enemy1 class will increase size of object, but not size of pointer (which is stored in vector).
Jul
8
answered A vector of pointers to different derived classes of the same base class
Jun
13
awarded  Citizen Patrol
Mar
1
awarded  Editor
Jan
21
awarded  Teacher
Jan
20
answered When and why should one create classes at runtime?
Feb
13
awarded  Autobiographer