is it possible to declare that virtual function in any header file and then use that function in other .cpp file without defining it? i am using visual C++ with visual studio 2008.
That "=0" bit is a special syntax that doesn't have anything to do with zeros or initialization. If you exclude it, I think you'll have to define this function.