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 
void Area()
Definition: ShapeFactory.cc:10
virtual void Area()=0
virtual ~Shape()=default
void Area()
Definition: ShapeFactory.cc:6