17 lines
261 B
C++
17 lines
261 B
C++
|
#ifndef SHAPE_HH
|
||
|
#define SHAPE_HH
|
||
|
|
||
|
class Shape {
|
||
|
public:
|
||
|
|
||
|
// Constructor, destructor
|
||
|
Shape() {} ;
|
||
|
virtual ~Shape() {} ;
|
||
|
|
||
|
// Pure virtual interface functions
|
||
|
virtual double surface() const = 0 ;
|
||
|
virtual double circumference() const = 0 ;
|
||
|
} ;
|
||
|
|
||
|
#endif
|