gfactory
Loading...
Searching...
No Matches
TeslaFactory.h
Go to the documentation of this file.
1#pragma once
2
3#include "Car.h"
4
5class Tesla : public Car
6{
7public:
8 Tesla();
9 void go();
10 double autopilot[2][2];
11};
12
13extern "C" Car* CarFactory(void) {
14 return static_cast<Car*>(new Tesla);
15}
16
Car * CarFactory(void)
Definition Car.h:5
void go()
double autopilot[2][2]