没分了,问个问题,顺便能不能要版主给点分?
a case for protected virtual functions
That's interesting, because in new code, all of my virtual
functions are protected. A virtual function should never be
public, of course.
but of course, the destructor normally will be public, and normally will be virtual.
/*
exception: interfaces.
class abstract_base
{
public:
virtual void method1() = 0;
};
*/
//为什么这么讲呢?怎么说这是一个exception?