/
plato
/
RaceProject
Обзор
Документация
Войти
/
plato
/
RaceProject
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
lib/include/AbstractVehicle.h
19 строк
425 B
Evanivan
feat: program almost done
09 дек 2025, 22:04
09 дек 2025, 22:04
e9ce965
Код
Авторство
О чём код?
#ifndef ABSTRACTVEHICLE_H #define ABSTRACTVEHICLE_H #include <string> class Vehicle { protected: double speed; std::string name; public: Vehicle(double s, const std::string& n); virtual ~Vehicle() = default; virtual double calculateTime(double distance) const = 0; virtual std::string getType() const = 0; std::string getName() const; double getSpeed() const; }; #endif // ABSTRACTVEHICLE_H