Lab 4
Loading...
Searching...
No Matches
shape.h
Go to the documentation of this file.
1#pragma once
2
3#include <fstream>
4#define PI 3.14
5#include "draw.h"
6//base class shape, has two pure virtual functions that are overridden in the derived classes
7class Shape {
8public:
9 virtual int calculateArea() =0; //=0 for pure virtual
10 virtual void draw() =0; //= 0 for pure virtual
11};
12
13
14
Definition shape.h:7
virtual int calculateArea()=0
virtual void draw()=0