Type: Posts; User: BlueAngelTC
Search took 0.01 seconds.
Do you mean I should include each of the derived class in the base class? In Astratta?
This is too ugly. It goes against every good rule of programming.
I will use another class as dispatcher...
I did it, the collide(Collision*) in every sub class and then in every sub class the othe methods:
This isn't necessary true: when I...
First, thank you all for your answers.
What do you mean? I'm not sure to understand clearly. "collide" is virtual (pure, thought).
Which others two methods? The ones I suggested? To...
Hi to everyone,
I have a little problem with my classes but before describing the problem I wish to ask forgiveness if similar questions were made before. This forum is huge and I'm unsure what to...
August 25th, 2009, 02:33 AM
Thank you very much for your replies guys.
I found what's the real problem: the destructor in the class Matrix is pure virtual, making it just virtual and giving him an (empty) definition the code...
August 24th, 2009, 11:08 AM
I use GCC on Linux.
I know a derived class can access protected members, that's the reason _righe and _colonne are protected and not private.
August 24th, 2009, 10:42 AM
Ok, now I'm really confused: your code compile and work O_o
I thought, as I've read since now, that templates cannot be virtual... so if this can be possibile what's wrong with my...
August 24th, 2009, 10:27 AM
My apologize, I've read wrong your reply. (I read "they cannot" instead of "they can").
No, as far I found on Internet (and the error gcc give me) they cannot combined.
August 24th, 2009, 10:17 AM
I'm a bit confused JohnW,
thank you for your reply but your code won't even compile. As mine it won't for the same reason: a template function cannot be virtual.
The operator() in Matrix is a...
August 24th, 2009, 07:47 AM
Hi to all,
I'm new to this forum, nice to meet you.
Let me explain my problem: I am from Java. Yes, I know there is no cure for this but please be patient with me, I'm a Java programmer not due...
Click Here to Expand Forum to Full Width