-
-
Save daemonfire300/4673905 to your computer and use it in GitHub Desktop.
This file contains 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
#include <string> | |
using namespace std; | |
#ifndef MEDIUM_H | |
#define MEDIUM_H | |
class Medium | |
{ | |
public: | |
string titel; | |
bool ausleihstatus; | |
virtual string getTyp() const =0; | |
}; | |
#endif // MEDIUM_H | |
#ifndef CD_H | |
#define CD_H | |
class CD : public Medium | |
{ | |
private: | |
unsigned int spieldauer; | |
public: | |
CD(void); | |
string getTyp() const; | |
}; | |
#endif // CD_H | |
CD::CD(void) | |
{ | |
} | |
string CD::getTyp() | |
{ | |
return "CD"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment