A Question

Greetings,

Could any one help me with the meaning of hooking an implementation in c++?

My second question is about the meaning of the following code:

#include<string>
namespace AIDA{
class ITreeFactory;
.
.
.
virtual ITreeFactory * createTreeFactory()=0;.
.
.
.
}

The thing that I don't understand is this multiplication of a class ITreeFactory and a function(createTreeFactory())??

Thanks in advance
The second question: this is not a multiplication operator in this context.

Read it like this:
virtual ITreeFactory* createTreeFactory()=0;

It is an abstract virtual function which returns something of type ITreeFactory*, i.e. a pointer to an object of type ITreeFactory. This looks like something like COM to me - perhaps it is a bit advanced if you haven't studied pointers yet.

Have you heard of virtual and/or abstract functions?

PS: [code]int main()[/code] -> int main().
Last edited on
Topic archived. No new replies allowed.