私の Service.h には次のものがあります。
#include "Configuration.h"
そして私のクラスでは:
private:
ConfigurationInterface* configuration_;
次に、私の Service.cpp で:
Service::Service(Foundation::Framework* framework) :
framework_(framework)
{
configuration_ = new Configuration();
}
以降...
const Info GetInfo()
{
return configuration_->getInfo();
}
宣言されていない識別子エラーが発生します.... (configuration_)
どうして?
EDIT:Cedric H.が言ったように:「ConfigurationInterfaceは抽象クラスであり、Configurationはそれから継承します」