S
skishorev
and what is object delagation, and how it can implemented?
and what is object delagation, and how it can implemented?
Victor said:There is no concept of "pure abstract class" in C++. So, I'd say there
is no difference. Of course, one could always pull some concept by the
ears and say that a "pure abstract class" is an abstract class that has
no data members. Is that good enough to deduce the difference?
and what is object delagation, and how it can implemented?
Noah said:A pure abstract class is an abstract class with no implemented members.
class Abstract
{
public:
virtual void f1() = 0;
virtual void f2() {}
};
class PureAbstract
{
public:
virtual void f1() = 0;
virtual void f2() = 0;
};
The "pure abstract" is really nothing but an interface def.
It seems like a silly distinction but there are arguments against the
first version in favor of always doing the second.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.