gfactory
Loading...
Searching...
No Matches
TeslaFactory.cc
Go to the documentation of this file.
1
#include "
TeslaFactory.h
"
2
3
#include <iostream>
4
using namespace
std;
5
6
void
Tesla::go
() {
7
cout <<
" Instantiating Tesla"
<< endl;
8
cout <<
" Factory car tesla autopilot[0][0] "
<<
autopilot
[0][0] << endl;
9
cout <<
" Factory car tesla autopilot[0][1] "
<<
autopilot
[0][1] << endl;
10
cout <<
" Factory car tesla autopilot[1][0] "
<<
autopilot
[1][0] << endl;
11
cout <<
" Factory car tesla autopilot[1][1] "
<<
autopilot
[1][1] << endl;
12
13
cout <<
" generalCarVar is "
<<
generalCarVar
<< endl;
14
}
15
16
Tesla::Tesla
(
const
std::shared_ptr<GOptions>& gopts) :
Car
(gopts) {
17
autopilot
[0][0] = 0;
18
autopilot
[0][1] = 1;
19
autopilot
[1][0] = 10;
20
autopilot
[1][1] = 11;
21
}
TeslaFactory.h
Car
Definition
Car.h:11
Car::generalCarVar
double generalCarVar
Definition
Car.h:23
Tesla::go
void go()
Definition
TeslaFactory.cc:6
Tesla::autopilot
double autopilot[2][2]
Definition
TeslaFactory.h:12
Tesla::Tesla
Tesla(const std::shared_ptr< GOptions > &)
Definition
TeslaFactory.cc:16
examples
TeslaFactory.cc
Generated by
1.10.0