Proble with virtual function!

Hello, mates! I desperately need help. I have a base class named Cell, and three derived classes - CellChar, CellNumber and CellEmpty.(first contains a string, second - int number, and the thrind is empty). I have to make a pure virtual functions getCell() and setCell(), but the problem is that i dont know how to define their type and setCell()'s parameters in the base class Cell. I just cant think of where ot start from.
Thank you in advance!
Last edited on
please help, anybody
It has only been six hours since you first posted, and it is the weekend. Relax.

You have only given a very general description of what you want to do, and all of it can be learned by reading your textbook and google.

Here's some stuff (with examples) that you may find useful.
http://www.cplusplus.com/doc/tutorial/polymorphism.html
http://www.programmers-corner.com/viewTutorial.php/36
http://www.parashift.com/c++-faq-lite/virtual-functions.html

Hope this helps.
Topic archived. No new replies allowed.