gfactory
Loading...
Searching...
No Matches
ShapeFactory.cc
Go to the documentation of this file.
1
#include "
ShapeFactory.h
"
2
3
#include <iostream>
4
using namespace
std;
5
6
// See header for API docs.
7
8
void
Triangle::Area
() {
9
cout <<
" Factory shape Triangle::Area() "
<< endl;
10
}
11
12
void
Box::Area
() {
13
cout <<
" Factory shape Box::Area() "
<< endl;
14
}
ShapeFactory.h
Box::Area
void Area()
Example implementation that prints a message.
Definition
ShapeFactory.cc:12
Triangle::Area
void Area()
Example implementation that prints a message.
Definition
ShapeFactory.cc:8
examples
ShapeFactory.cc
Generated by
1.10.0