-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathHybridCar.cpp
More file actions
19 lines (15 loc) · 769 Bytes
/
HybridCar.cpp
File metadata and controls
19 lines (15 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "HybridCar.hpp"
#include <iostream>
HybridCar::HybridCar(PetrolEngine* petrolEng, ElectricEngine* electricEng)
: petrolEngine_(petrolEng)
, electricEngine_(electricEng)
{
std::cout << __FUNCTION__ << std::endl;
}
HybridCar::~HybridCar() { std::cout << __FUNCTION__ << std::endl; }
void HybridCar::turnLeft() { std::cout << __FUNCTION__ << std::endl; }
void HybridCar::turnRight() { std::cout << __FUNCTION__ << std::endl; }
void HybridCar::brake() { std::cout << __FUNCTION__ << std::endl; }
void HybridCar::accelerate(int) { std::cout << __FUNCTION__ << std::endl; }
void HybridCar::charge() { std::cout << __FUNCTION__ << std::endl; }
void HybridCar::refuel() { std::cout << __FUNCTION__ << std::endl; }