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