data structure lab 1

profileahmeddxn7
Larva.h

/* * Larva.h * * Created on: Mar 11, 2019 * Author: itemesva */ #ifndef LARVA_H_ #define LARVA_H_ #include <string> using namespace std; enum LARVA_TYPE {round, slim, stinky, large}; class Larva{ public: Larva(); Larva(string, int); string getColor(); int getType(); private: string color; int type; }; Larva::Larva(){ color = "N/A"; type = -1; } Larva::Larva(string c, int t){ color = c; type = t; } string Larva::getColor(){ return color; } int Larva::getType(){ return type; } #endif /* LARVA_H_ */