consolidate all repos to one for archive
This commit is contained in:
17
semester_2/programiranje_2/primeri/Example14/Composite.h
Normal file
17
semester_2/programiranje_2/primeri/Example14/Composite.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef EXAMPLE14_COMPOSITE_H
|
||||
#define EXAMPLE14_COMPOSITE_H
|
||||
|
||||
class Composite : public Shape {
|
||||
private:
|
||||
Shape* ptrShape;
|
||||
Composite* ptrNext;
|
||||
public:
|
||||
Composite(Shape* s = nullptr);
|
||||
void add(Shape* s);
|
||||
double area() const;
|
||||
void print() const;
|
||||
void relMove(int x1, int y1);
|
||||
void deleteRec();
|
||||
};
|
||||
|
||||
#endif //EXAMPLE14_COMPOSITE_H
|
||||
Reference in New Issue
Block a user