Skip to content

Instantly share code, notes, and snippets.

@daemonfire300
Forked from anonymous/bla.cpp
Last active December 11, 2015 22:59
Show Gist options
  • Save daemonfire300/4673905 to your computer and use it in GitHub Desktop.
Save daemonfire300/4673905 to your computer and use it in GitHub Desktop.
#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