I am required to create a pure virtual method for a project that
returns a string. The method name is: getCoverType()
I know that for a data type int I could do this:
protected:
// method to decide how to sort the list.
virtual bool toCompare_ (const Key& key1, const Key& key2) const =
0;
But, how would I declare this for a method that returns a string?
//method to return a string for the book cover type
virtual string getCoverType() /*what else ??*/ ;
Thanks