O'kay, this works. But unfortunately, in my case that class should be base class. And the derived classes must allow making objects of them. Sorry , may be I've confused you by not saying the whole problem. Thanks again.
I think you need to review the mechanics of inheritance. Either solution will work for your needs, though I suspect that if this is homework you are doing that your professor wants to see a pure virtual function in an abstract class.
:)
Yeah, it was a homework, but when it was gaven to us, we hadn't been taught nothing about virtual functions or abstract classes. That was the reason i wanted to avoid using pure virtual fuction. Anyway... thanks for your help!
Best wishes,
MrProfit