blob: 6cbc24b6b290aa45789aa55f69e7fe1cbbf2decf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include "Radio.h"
#include <iostream>
using std::cout;
using std::endl;
Radio::Radio()
{
volume=0;
cout << "Konstruktor Radio called" << endl;
}
Radio::Radio(char * devName)
:GeneralDevice(devName)
{
volume=0;
cout << "�berladener Konstruktor Radio called" << endl;
}
Radio::~Radio()
{
cout << "Destruktor Radio called" << endl;
}
void Radio::operator++(int)
{
volume++;
}
void Radio::operator--(int)
{
volume<=0?volume=0:volume--;
}
void Radio::print()
{
cout << "Name: "<< getDeviceName() << " Volume: " << volume << endl;
}
|