14 lines
167 B
C++
14 lines
167 B
C++
#pragma once
|
|
class Car
|
|
{
|
|
unsigned int freeSeats;
|
|
public:
|
|
Car(unsigned int freeSeats);
|
|
|
|
bool hasFreeSeats() const;
|
|
void reserveFreeSeat();
|
|
|
|
virtual ~Car() {};
|
|
};
|
|
|