gfactory
Loading...
Searching...
No Matches
FordFactory.cc
Go to the documentation of this file.
1
#include "
FordFactory.h
"
2
3
#include <iostream>
4
using namespace
std;
5
6
void
Ford::go
() {
7
cout <<
" Factory car ford fordVar[1] "
<<
fordVar
[1] << std::endl;
8
}
9
10
Ford::Ford
(
const
std::shared_ptr<GOptions>& gopts) :
Car
(gopts) {
11
cout <<
" Instantiating Ford"
<< endl;
12
fordVar
[0] = 100;
13
fordVar
[1] = 200;
14
}
FordFactory.h
Car
Definition
Car.h:11
Ford::Ford
Ford(const std::shared_ptr< GOptions > &)
Definition
FordFactory.cc:10
Ford::fordVar
double fordVar[2]
Definition
FordFactory.h:14
Ford::go
void go()
Definition
FordFactory.cc:6
examples
FordFactory.cc
Generated by
1.10.0