#include <iostream>
#include <string>
using namespace std;
class Cbase
{
public:
void printtitle(void)const;
string gettitle(string tit);
virtual bool isgood() = 0;
Cbase();
virtual ~Cbase();
protected:
string title;
int volume_of_sales;
};
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Cbase::Cbase():title("NoTitle"),volume_of_sales(0)
{
}
Cbase::~Cbase()
{
}
string Cbase::gettitle(string tit)
{
return title = tit;
}
void Cbase::printtitle(void)const
{
cout << title << endl;
}