Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
// animal class!
2
3
#ifndef ANIMAL_H
4
#define ANIMAL_H
5
#include "livingThing.h"
6
7
class animal : public livingThing {
8
public:
9
virtual void eat(livingThing *food);
10
// maybe later virtual void expellWaste()=0;
11
12
};
13
14
#endif
15
16