Created
January 30, 2013 15:13
-
-
Save anonymous/4673904 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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