Content deleted Content added
Rkieferbaum (talk | contribs) m v2.05 - Fix errors for CW project (Link equal to linktext - Whitespace characters after heading) |
Gilson1111 (talk | contribs) |
||
Line 139:
class ICar {
public:
virtual ~ICar() { std::cout << "ICar destructor!" <<
virtual void DriveCar() = 0;
Line 146:
class Car : public ICar {
public:
void DriveCar() override { std::cout << "Car has been driven!" <<
};
Line 157:
real_car_->DriveCar();
} else {
std::cout << "Sorry, the driver is too young to drive." <<
}
}
|