mein problem:
IMyInterface.h
Code: Alles auswählen
#ifndef IMYINTERFACE_H_
#define IMYINTERFACE_H_
#include <string>
class IMyInterface {
public:
virtual std::string saySomething();
};
#endif /* IMYINTERFACE_H_ */
Code: Alles auswählen
#ifndef MYIMPLEMENTOR_H_
#define MYIMPLEMENTOR_H_
#include <string>
#include "IMyInterface.h"
class MyImplementor : public IMyInterface {
public:
MyImplementor();
virtual ~MyImplementor();
std::string saySomething();
};
#endif /* MYIMPLEMENTOR_H_ */Code: Alles auswählen
#include <string>
#include "MyImplementor.h"
MyImplementor::MyImplementor() {
// TODO Auto-generated constructor stub
}
MyImplementor::~MyImplementor() {
// TODO Auto-generated destructor stub
}
std::string MyImplementor::saySomething() {
return std::string("Ola");
}nach entfernen der beziehung
Code: Alles auswählen
class MyImplementor : public IMyInterfacewahrscheinlich hängt die antwort an meinem brett vor'm kopf, dummerweise nur an der falschen seite und ich seh' sie nicht. könnte sie mir jemand "vorlesen"?