It depends upon what you want to achieve! You're trying to jump ahead and attempting to do things without having the basic underlying knowledge. You need to acquire the basic knowledge of c++ so that you would know whether you need virtual functions or derived classes or pure virtual etc. Learn the basics of the c++ language (including classes) before you try to do to much.Quote:
so i must use virtual functions.