M
Mike -- Email Ignored
Pure operator= thus:
class A // abstract
{
virtual A& operator=(const A&); // has a purpose
};
class B : public A // never instantiated alone
{
virtual B& operator=(const B&) = 0; // nothing needed, so pure
};
class C : public B; // instantiated
{
virtual C& operator=(const C&); // has a purpose
};
Won't compile as long as I leave the assignment operator for
class B pure. Why not? Chapter & verse?
Thanks for your help.
Mike.
class A // abstract
{
virtual A& operator=(const A&); // has a purpose
};
class B : public A // never instantiated alone
{
virtual B& operator=(const B&) = 0; // nothing needed, so pure
};
class C : public B; // instantiated
{
virtual C& operator=(const C&); // has a purpose
};
Won't compile as long as I leave the assignment operator for
class B pure. Why not? Chapter & verse?
Thanks for your help.
Mike.