Skip to content

Instantly share code, notes, and snippets.

Created January 30, 2013 15:13
Show Gist options
  • Save anonymous/4673904 to your computer and use it in GitHub Desktop.
Save anonymous/4673904 to your computer and use it in GitHub Desktop.
#ifndef STRING
#define STRING
#include <string>
using namespace std;
#endif
#ifndef MEDIUM
#define MEDIUM
class Medium
{
public:
string titel;
bool ausleihstatus;
virtual string getTyp() const =0;
};
#endif
#ifndef CD
#define CD
class CD : public Medium
{
private:
unsigned int spieldauer;
public:
string getTyp() const;
};
#endif
string CD::getTyp()
{
return "CD";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment