x
Size: a a a
x
VD
VD
ТЗ
VD
float yourShittyCode;
VD
float yourShittyCode;
float titanic
M
VD
VD
M
M
VD
VD
M
VD
M
M
enum SectionType {
herbivor,
predator,
grass,
meat,
empty
};
class ISection {
public:
virtual SectionType getType() = 0;
};
class Section: public ISection {
public:
SectionType getType() override;
Section();
protected:
SectionType type = empty;
};
class HerbivorSection: public Section {
public:
HerbivorSection();
protected:
SectionType type = herbivor;
};
class PredatorSection: public Section {
public:
SectionType getType();
PredatorSection();
private:
SectionType type = predator;
};
class GrassSection: public Section {
public:
GrassSection();
protected:
SectionType type = grass;
};
class MeatSection: public Section {
public:
MeatSection();
private:
SectionType type = meat;
};
class EmptySection: public Section {
public:
EmptySection();
protected:
SectionType type = empty;
};
M
VD
M