gfactory
ShapeFactory.h
Go to the documentation of this file.
1
#pragma once
2
3
class
Shape
{
4
public
:
5
virtual
void
Area
() = 0;
6
virtual
~Shape
() =
default
;
7
8
};
9
10
class
Triangle
:
public
Shape
{
11
public
:
12
void
Area
();
13
};
14
15
16
class
Box
:
public
Shape
{
17
public
:
18
void
Area
();
19
};
20
Box
Definition:
ShapeFactory.h:16
Box::Area
void Area()
Definition:
ShapeFactory.cc:10
Shape
Definition:
ShapeFactory.h:3
Shape::Area
virtual void Area()=0
Shape::~Shape
virtual ~Shape()=default
Triangle
Definition:
ShapeFactory.h:10
Triangle::Area
void Area()
Definition:
ShapeFactory.cc:6
examples
ShapeFactory.h
Generated by
1.9.1