Nick Malik said:
You do not provide any details to explain why.
Okay, I give you details.
If I have a virtual class, it's because I'm doing a drawing tool. So, it is
(at leat I think) the best way to do it : when you have a thing to draw, you
call the draw() method, and it works for every things you have. It was
possible to do in other way, perhaps, but it's too late (I have too many
code to go backward).
But, after the user have done a paint, there is a phase of "compilation". To
be more precise, what was drawn was computer (only an icon), network, walls
and lot of things like that. So, after, I look all elements placed, and I
have to do specifics things with computer only. So, I think that I can do
what I want with .getType(), even if it's not the best way to do so.
But if you have a better solution, give it

)
I don't have begin to program anything, so I am still open.
If you need any other info, ask; perhaps I was not clear ?