OOP_zadanie6/CarDriver.h

21 lines
231 B
C++

#pragma once
#include "Car.h"
#include "Driver.h"
class CarDriver
{
public:
Car* car;
Driver* driver;
CarDriver(Car &car, Driver &driver) {
this->car = &car;
this->driver = &driver;
}
virtual void driveCar() = 0;
};