Lab 4
Loading...
Searching...
No Matches
source
repos
PROG71020_Lab4
Lab4
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
7
class
Shape
{
8
public
:
9
virtual
int
calculateArea
() =0;
//=0 for pure virtual
10
virtual
void
draw
() =0;
//= 0 for pure virtual
11
};
12
13
14
Shape
Definition
shape.h:7
Shape::calculateArea
virtual int calculateArea()=0
Shape::draw
virtual void draw()=0
draw.h
Generated by
1.11.0