gfactory
FordFactory.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Car.h
"
4
5
class
Ford
:
public
Car
6
{
7
public
:
8
Ford
();
9
void
go
();
10
double
fordVar
[2]{};
11
};
12
13
extern
"C"
Car
*
CarFactory
(
void
) {
14
return
static_cast<
Car
*
>
(
new
Ford
);
15
}
Car.h
CarFactory
Car * CarFactory(void)
Definition:
FordFactory.h:13
Car
Definition:
Car.h:5
Ford
Definition:
FordFactory.h:6
Ford::fordVar
double fordVar[2]
Definition:
FordFactory.h:10
Ford::go
void go()
Definition:
FordFactory.cc:6
Ford::Ford
Ford()
Definition:
FordFactory.cc:10
examples
FordFactory.h
Generated by
1.9.1