blob: 0e65865bcd668baf5de83da640e7dc5451c3d602 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <string>
using namespace std;
class Automobile
{
double fuel;
double speed;
string license;
public:
Automobile (string, double, double);
string get_license () { return license; }
double get_fuel () { return fuel; }
double get_speed () { return speed; }
void set_license (string);
void set_fuel (double);
void set_speed (double);
void accelerate (double);
void decelerate (double);
};
|