consolidate all repos to one for archive
This commit is contained in:
20
semester_2/programiranje_2/naloga0601/Shape2D.h
Normal file
20
semester_2/programiranje_2/naloga0601/Shape2D.h
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by Nik on 10/04/2022.
|
||||
//
|
||||
|
||||
#ifndef NALOGA0601_SHAPE2D_H
|
||||
#define NALOGA0601_SHAPE2D_H
|
||||
|
||||
#include "PrintUtility.h"
|
||||
|
||||
class Shape2D {
|
||||
protected:
|
||||
ColorCode color;
|
||||
public:
|
||||
Shape2D(ColorCode color);
|
||||
virtual unsigned int getSurfaceArea() const = 0;
|
||||
virtual void draw() const = 0;
|
||||
};
|
||||
|
||||
|
||||
#endif //NALOGA0601_SHAPE2D_H
|
||||
Reference in New Issue
Block a user